|
|
Choosing A Webhost: |
Re: using run mode names to provide file name extensions: msg#00088lang.perl.modules.cgi-appplication
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/cgiapp@xxxxxxxxxxxxxxxxx/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | using run mode names to provide file name extensions, Mark Stosberg |
|---|---|
| Next by Date: | Re: using run mode names to provide file name extensions, Michael Peters |
| Previous by Thread: | using run mode names to provide file name extensions, Mark Stosberg |
| Next by Thread: | Re: using run mode names to provide file name extensions, Michael Peters |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |