Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the MIMI-Type to download multiple files

Status
Not open for further replies.

RPrinceton

Programmer
Jan 8, 2003
86
US
Hi Everyone,
The code snippet below works to download only ONE file.
How can I modify the code to download multiple files? Repeating the code with another file name does not work. Please advise.
Thx in advance.
Regards,
RPrinceton

Code snippet that works to download one file:
open(FILEm"/home/public_html/docs") || die "Cannot open file ($!)";
print "MIME-Type: 1.0\n";
print "Content-Disposition: attachment; filename=abc.doc\n";
print "Content-type: application/octet-stream\n\n";
while(<FILE>){print $_; }
close(FILE)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top