XFileSharing Free - Downloads are corrupt

Message
Author
djc
Posts: 3
Joined: Jul 14, 2008 6:28 pm

Downloads are corrupt

#1 Postby djc » Aug 13, 2008 12:08 am

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.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Aug 13, 2008 12:26 pm

oh, Windows? Bad choice for web server man :)
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";
add

Code: Select all

binmode($in_fh);
this will enable binary mode for file descriptor, special function for windows.

djc
Posts: 3
Joined: Jul 14, 2008 6:28 pm

#3 Postby djc » Aug 13, 2008 9:36 pm

that worked!

thanks much.