Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: cgi download and delete file

by poj (Curate)
on Aug 15, 2013 at 10:26 UTC ( #1049546=note: print w/ replies, xml ) Need Help??


in reply to cgi download and delete file

You could create the zip 'on-the-fly' so no file to delete

#!perl use strict; use Archive::Zip; use CGI qw(:standard); my $zip = Archive::Zip->new(); $zip->addFile('c:/temp/inet/test.pdf','test.pdf'); print header(-type=>'application/zip',-attachment=>'download.zip'); binmode(STDOUT); $zip->writeToFileHandle(*STDOUT);
poj


Comment on Re: cgi download and delete file
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049546]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-07-25 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls