Configure IIS to allow downloads for file types

,

I was recently in a bit of a bind and needed to get a large file from a server to another workstation, the server had IIS and was already live on the internet but when I copied across the file and tried to download it but was getting a 404 File not found. The file extension was .bak which isn’t a file type that IIS understands whether to execute or stream or present to a web browser in a different way. We can easily instruct IIS to perform a stream of the content to the web browser, which triggers a download.

Going into the Server Level, then click on MIME Types, once there we can click on Add… under the Actions blade on the right, you can then enter the file extension, whether it’s .bak or .iso or something else. Then configure the MIME type to be as follows

application/octet-stream

Click OK and then just restart the web service. You should then be able to download the file.


Leave a Reply

More Posts

How to spoof or mimic a hardware or MAC Address of another device on an interface on a FortiGate

I was recently out at a client and they were in the process of getting another link installed, which happened to be Cable internet which they were using for redundancy.  We put their cable modem in Bridge mode but the connection wasn’t coming up after connecting everything up.   Most cable providers authenticate with certificates […]

Using the Google Maps API with PHP to display a Map and place a Marker on the map using Geocoding

So I was recently developing a new feature for a client’s website where we wanted to display an interactive Google Map with the address of a particular item (in this case a customer) along with a marker to show where it was on the map. So I set about looking around on the Internet for […]

Issues Deploying a Custom Windows 10 Start Menu Layout when using an image with a Default Profile

So I’m in the final stages of getting our Windows 10 Deployment ready to go and I am currently in the process of branding and customising our image, which includes setting a custom Start Menu Tile Layout.  This is done with the use of two PowerShell commands Export-StartMenuLayout and Import-StartMenuLayout. I created our preferred start menu, […]