[thelist] Temporary Download Link

ramon buckland ramon at thebuckland.com
Mon Jul 1 19:37:00 CDT 2002


Here's one way, not the only:

Depending on environment,

Create a download handler:


This file streams a document given certain parameters.


The id could be an MD5 of the SessionID for that user
and the download handler just checks the session ID with the one passed in

The 4001 could be a db lookup giving information about the file.
(path to file, MIME type, etc)

Then, just stream the file back to the user with the appropriate Headers

Content-type: application/zip
Content-disposition: attachment; filename=file4001.zip

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Burhan Khalid
> Sent: Tuesday, 2 July 2002 10:24 AM
> To: thelist at lists.evolt.org
> Subject: [thelist] Temporary Download Link
> Hello All :
> I wanted the survey the list members as to your opinions on creating
> random links for file downloading. For example, once a user enters their
> email, a random link is created for a file, which expires after a
> certain time. Any ideas on how to go about doing this? I'm open to
> suggestions (since this is at a design stage).
> Thanks again,
> Burhan
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list