It is a little annoying that every time when you put a "new" file-extension on your IIS 7.5 backed server for simple http-download you have to think about adding the extension to the IIS configuration!
(e.g. provide a file zipped in the format .7z)
Is there a way to tell IIS "serve anything" (like it is the default setting in Apache-Webserver) ?
Thanks
You should add the following to the MIME types:
For files with any extension (i.e. foo.somethingcrazyhere)
extension: .*
MIME type: application/octet-stream
For files without any extension (i.e. SOMETHING_CRAZY_HERE_NO_DOT)
extension: .
MIME type: application/octet-stream
You should add the following to the MIME types:
extension: .*
MIME type: application/octet-stream
After that (depending on the browser) every unknown file will be forced to download.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With