Downloading file from cgi application

Jeff McNeil jeff at jmcneil.net
Mon Nov 5 08:50:05 EST 2007


You could also just store the files outside of the document root if  
you don't want to worry about  a database. Then, as Jeff said, just  
print the proper Content-Type header and print the file out.

On Nov 5, 2007, at 8:26 AM, Jeff wrote:

> Store the file in a database.  When an authorized user clicks the
> link, send the proper headers ('Content-Type: application/pdf') and
> then print the file.
>
> -- 
> http://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list