in reply to Re: File Upload Script: Security Issue???
in thread File Upload Script: Security Issue???
The server then takes it's id, looks up it's proper filename in a DB, then sends the file to the browser.
Here's the relevant part of my download script:
open(DLFILE, "<$file_location/$id") || Error('open', 'file'); @fileholder = <DLFILE>; close (DLFILE) || Error ('close', 'file'); print "Content-Type:application/x-download\n"; print "Content-Disposition:attachment;filename=@filename[0]\n\n"; print @fileholder
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: File Upload Script: Security Issue???
by fmerges (Chaplain) on Jun 28, 2005 at 21:41 UTC |