in reply to Re: cgi download and delete file
in thread cgi download and delete file
and$self->download_zip(); sleep 5; my $filename = "temporaneo/" . $self->session->param("nom_projet") + . ".zip"; unlink $filename;
What I was trying to do was following your advice: put the zip file in another directory and, if succeed, redirect to another run mode that erases the file, otherwise stay on the page and relaunch the download.$self->generate_zip(); $self->download_zip(); return $self->redirect("http://delete.cgi");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: cgi download and delete file
by teddyttas (Novice) on Aug 16, 2013 at 08:41 UTC |