View Single Post
  #5 (permalink)  
Old 08-14-03, 09:54 AM
e4c5 e4c5 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,
glad to be of help.
first replace the line in your code with

Code:
print "content-type: application/octet-stream\n";
print "Content-Disposition: inline; filename=\"$filename\"\n\n";
Please note - the order is important
you have to replace the $filename with whatever your filename is or your variable that represents the file name

the second point is that you are reading in chunks of 10MB each. this is way too much. try a lot smaller value would be kinder on your server.

all the best



[code]
print "Content-Disposition: inline; filename=\"$filename\"

[/code[
__________________
Raditha Dissanayake

<a href="http://www.radinks.com/sftp">http://www.radinks.com/sftp</a>
Lean and mean sftp applet with GUI.
Reply With Quote