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