Hello,
When downloading a file from the site, it speeds along until 99%, pauses for about 4 seconds, then completes. Problem is, the file is corrupt. If zip, it won't open, of bmp, won't display.
I am able to manually place a test.zip file in the public html and download it by direct URL just fine, so it isn't an Apache issue.
If I upload a zip file, then go into uploads/00000 and temporarily rename the most recent upload to xxxx.zip, it opens fine on the server, so uploading is ok. Integrity is lost on the download.
ideas?
win2k3/apache2.2.6/IE6.
XFileSharing Free - Downloads are corrupt
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
oh, Windows? Bad choice for web server man
But anyway, try this quick fix: in index.cgi after line
add
this will enable binary mode for file descriptor, special function for windows.
But anyway, try this quick fix: in index.cgi after line
Code: Select all
open(my $in_fh,"$c->{target_dir}/$dx/$f->{id}") || die"Can't open source file";
Code: Select all
binmode($in_fh);