| View previous topic :: View next topic |
| Author |
Message |
djc
Joined: 14 Jul 2008 Posts: 3
|
Posted: Aug 13, 2008 12:08 am Post subject: Downloads are corrupt |
|
|
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. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 13, 2008 12:26 pm Post subject: |
|
|
oh, Windows? Bad choice for web server man
But anyway, try this quick fix: in index.cgi after line
| Code: | | open(my $in_fh,"$c->{target_dir}/$dx/$f->{id}") || die"Can't open source file"; |
add
this will enable binary mode for file descriptor, special function for windows. |
|
| Back to top |
|
 |
djc
Joined: 14 Jul 2008 Posts: 3
|
Posted: Aug 13, 2008 9:36 pm Post subject: |
|
|
that worked!
thanks much. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|