Downloading a file
Downloading a file
- Subject: Downloading a file
- From: Miguel Arroz <email@hidden>
- Date: Sun, 22 Jan 2006 22:59:35 +0000
Hi!
I need to upload and download files to/from my application. The
files are stored on the DB.
The download may only be done by logged in users, ie, it's not
public. To implement that, I created a component and a dynamic
element. The component has only the dynamic element, and the dynamic
element appends the file data to the responde and sets the correct
content-type header. So far, so good.
The only problem is that, when people download the file to their
hard drive, the file name is something like 1.5.3.9.5.3... you
know! :) Is there any easy way to make the file name look decent (ie,
be the same as the name of the file when it was uploaded)? I store
the file name on the database, so it's right there, just need to find
a way to tell the browser to use it.
Yours
Miguel Arroz
"I felt like putting a bullet between
the eyes of every Panda that wouldn't
scr*w to save its species." -- Fight Club
Miguel Arroz
http://www.ipragma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden