When I attempt to download this file, sometimes it only downloads about 700KB (the file is 40MB) then I get the message that the download is complete. If I try to download the file again, it works properly.

The problem seems prevalent in IE, although I've had it happen in Chrome sometimes too.

I have the following code:

<input type="button" 
    value="Agree to Terms and Download" 
    onClick="location.href='/downloads/setup.exe';" />

If it matters, this is over a secure connection.

I also tried zipping the file, and had the same issues.

link|improve this question

46% accept rate
Anything in the logs? Any specific directives for that vhost/path? What's serving the file, apache or php? You're giving us little to work with here. – Joris Aug 23 '10 at 17:09
feedback

migrated from stackoverflow.com Aug 23 '10 at 16:56

This question came from our site for professional and enthusiast programmers.

2 Answers

This sounds like a server issue, what server are you using?

link|improve this answer
An apache server – kylex Aug 23 '10 at 17:00
Check your error_log for errors. I don't have a solution yet, but HTTP analysers like HttpFox could be useful here. Look for the Content-Length response header. It should always match the filesize. I think your server crashed during the download; apache stops serving and your browser thinks it's done. – Lekensteyn Aug 23 '10 at 17:57
feedback

I suggest to set up some web monitoring so you get some better statistics on the issue. Maybe that reveals a pattern. Try e. g. with a free account at AlertFox: Monitor file downloads

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.