Re: Downloading file from cgi application

2007-11-05 Thread sophie_newbie
On Nov 5, 1:50 pm, Jeff McNeil <[EMAIL PROTECTED]> wrote: > 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 w

Re: Downloading file from cgi application

2007-11-05 Thread Jeff McNeil
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

Re: Downloading file from cgi application

2007-11-05 Thread Diez B. Roggisch
sophie_newbie wrote: > Hi, > > I'm writing a cgi application in Python that generates a PDF file for > the user and then allows them to download that file. Currently I'm > just writing the PDF file to the 'htdocs' directory and giving the > user a link to this file to download it. But the problem

Re: Downloading file from cgi application

2007-11-05 Thread Jeff
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

Downloading file from cgi application

2007-11-05 Thread sophie_newbie
Hi, I'm writing a cgi application in Python that generates a PDF file for the user and then allows them to download that file. Currently I'm just writing the PDF file to the 'htdocs' directory and giving the user a link to this file to download it. But the problem is that another user could simply