[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] How to download a dynamically generated file


Steve Hay <suppressed> wrote 
> I had a look at the CGI.pm manpage, and it says this about the 
> -attachment argument:
> 
> "The -attachment parameter can be used to turn the page into an 
> attachment. Instead of displaying the page, some browsers will 
> prompt the user to save it to disk. The value of the argument is the 
> suggested name for the saved file."

When the browser gets a pdf it will open it using Adobe (if the user has set
it up that way) and if it doesn't, then the user will be prompted to either
download it or open it (using Adobe). So, either way, using CGI and the
'-attachment' argument will work.

Michael Peters
Venzia

---------------------------------------------------------------------
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.