Loops303 has asked for the wisdom of the Perl Monks concerning the following question:
I am building a web form for a user to upload a csv file, check off what outputs they want (e.g., Report 1, Invoice, etc.) and then the script grabs the upload form and is supposed to spit out the various things they checked off as individual CSV files.
My problem is I can output to 1 single CSV, not multiple ones.
I've tried
print "Content-Type: multipart/mixed\n"; print "Content-disposition: attachment;filename=test.csv\n\n";
Which works to output the fist file.
For the next file, I've tried to start with the same above (with filename=test2.csv) or just the Content Disposition with a new filename.
The goal is to output test.csv and test2.csv.
What happens instead is it prints the content intended for test2 into test.csv.
Any advice on how to proceed will be much appreciated!
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Perl to Output Multiple Files for Download via a Browser
by daxim (Curate) on Mar 06, 2013 at 16:41 UTC |