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?
|
feedback
|
|
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. | |||||||||
feedback
|
|
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. HTH! | |||
|
feedback
|