Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Aug 23 '10 at 16:56

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

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

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

share|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

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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