On Thursday 25 March 2004 12:02 pm, Price, Jason (TLR Corp) wrote: > I'm trying to figure out a way to stream a file to a remote user, and be > able to determine that the download completed, so I can delete the file > being streamed. I may be missing an obvious way to do this, so I'm hoping > you all can help me out. > > Here's the sequence of events I'm after: > > 1. User clicks URL pointing to perl script. > 2. Perl script pulls file out of LDAP, and writes it temporarily to disk. > 3. File is uudecoded on the disk. > 4. Decoded file is streamed to user, who saves the file locally. > 5. Once it is determined that the download is complete, the temp file on > the web server is deleted. > > > Steps 4 and 5 are what I'm really after - the rest is relatively straight > forward. For security reasons, we don't want the file to remain on the web > server filesystem any longer than it has to, which is why I need to delete > it after being downloaded. Emailing the file is not an option, also due to > security reasons. > > Can anyone help me out with a way to do this?
You should try posting this on the cgi list instead. You would me more likely to get a response. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>