JohannShunt has asked for the wisdom of the Perl Monks concerning the following question:
Thanks.open (PDF_FILE,"<$pdffile") || die "Could not open file: $pdffile"; print $cgi->header(-type=>"application/pdf",-attachment=>"$pdfid.pdf") +; # set the appropriate header while (<PDF_FILE>) { # send the PDF bitstream to the client print; } close PDF_FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI download filename weirdness
by ikegami (Patriarch) on Feb 08, 2010 at 16:58 UTC | |
|
Re: CGI download filename weirdness
by kennethk (Abbot) on Feb 08, 2010 at 15:54 UTC | |
by Anonymous Monk on Feb 08, 2010 at 17:18 UTC | |
by kennethk (Abbot) on Feb 08, 2010 at 17:29 UTC | |
by JohannShunt (Novice) on Feb 08, 2010 at 21:23 UTC |