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;
In reply to CGI download filename weirdness by JohannShunt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |