download_file.html sends no Content-length HTTP header

Sort:
Avatar of romanski

Hello guys,

 

currently, the download_file.html script, 

which handles downloads, does not send a Content-length HTTP header.

 

So when downloading files the user is not shown how big the file is in his user agent (for example IE shows "unknown", Opera shows "?" etc). Also, no way to determine if a download was really complete.

 

Adding Content-length is easy. Just read the file-size and add HTTP header :)

 

Greetins,

Roman

Avatar of erik
ok. sounds good! we can do that :)