Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi, recently I posted a snippet to allow multipart attachment
downloads. I generated my own headers and it works fine with linux apache and Mozilla. Merlyn reponded, that I could also do it with CGI.pm. Well at the time, I didn't have the latest version of CGI.pm, which supported the sub multipart_final, so I just shoved the script to my code collection. I recently upgraded to the latest CGI.pm and tried Merlyn's script again, and it just refuses to run for me. I am asking for "higher guidance" now. My working code follows ############################################ merlyn's suggestion follows below: ######################################## When I run Merlyn's code, the filename is always nph-download-multi, and I'm prompted to save that filename 6 times instead of 3, and the name is always nph-download-multi, instead of test.tgz, test1.tgz, etc. Now I did try to add a "-filename=>$_" to the code to get the filename to come thru, but to no avail. Also the resultant download is 0 bytes. I've tried every combination of header that I could think of, but no luck. So would anyone be kind enough to post a multipart-download script , based on CGI.pm which actually works, so I can see what I'm doing wrong? Thanks In reply to CGI.pm woes with multipart attachments by zentara
|
|