Downloading file

2013-12-12 Thread Matt Graves
I have direct links to a number of csv files to download. Copying and pasting it to my browser would take too long, how would i go to this site for example and get the file? Right when you go to the site the download should start www.example.com/files/document.csv --

Re: Downloading file

2013-12-12 Thread MRAB
On 12/12/2013 20:45, Matt Graves wrote: I have direct links to a number of csv files to download. Copying and pasting it to my browser would take too long, how would i go to this site for example and get the file? Right when you go to the site the download should start

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

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

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 is

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 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 wrote: