Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

How can I configure IIS 6 so that when a user downloads a file via http, they can determine the size of the file during the download?

share|improve this question
up vote 2 down vote accepted

This is because the Content-Length header is missing. IIS6 should put this header on any file it serves anyway, with the exception of some dynamic files (such as PHP) where it can't determine the size.

If you're sending a binary file through a preprocessor (such as PHP/ASP/Ruby/Perl/etc), then you will need to search/ask over at Stack Overflow as to how to add the Content-Length header.

share|improve this answer

The correct answer to this on IIS v6 is:

Turn off the "compress static files" option:

Go into IIS, and right click Web Sites, then Properties, then the Service tab. Unheck "Compress Static Files".

This will allow browsers to properly discover the size of downloaded files.


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.