Mark Stosberg wrote:
> I'm generating a ".zip" file through CGI::App today.
>
> Because I send the "application/zip" mime type with it, it opens in
> The Ark decompression tool on my Linux desktop automatically.
>
> But Ark is a little confused. It wants to confirm if the non-standard
> extension is correct. This happens because My URL ends like this:
>
> /script.cgi/zip_file_download
>
> I want to avoid this nagging.
>
> So I add this run mode mapping:
>
> $self->run_modes( 'download.zip' => 'zip_file_download' );
>
> Now the run mode is named "download.zip", and Ark is happy.
What happens if you send it a Content-Disposition header to give the
file a name?
"Content-Dispositioni: attached; filename=download.zip";
--
Michael Peters
Developer
Plus Three, LP
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.