Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: cgi download and delete file

by teddyttas (Novice)
on Aug 16, 2013 at 08:41 UTC ( #1049705=note: print w/ replies, xml ) Need Help??


in reply to Re^2: cgi download and delete file
in thread cgi download and delete file

Okay, I think I got the solution to my last question... it was simple. In fact I solved it in the following way...

$self->generate_zip(); my $output = $self->download_zip(); #here I can do what I want. unlink and so on.. my $filename = "temporaneo/" . $self->session->param("nom_projet") + . ".zip"; unlink $filename; #and only then I stream the output return $output;
I can now redirect to another runmode passing the $output variable and solve the problem as you suggested. thank you very much!


Comment on Re^3: 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://1049705]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2015-07-04 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls