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 convert Hex Colour Codes into RGB Colour Codes using PHP

I was recently working on a web based piece of software that had some colour settings stored in a database table which were stored as hexadecimal colour code values. I needed a quick way to convert them into RGB (Red, Green, Blue) values so that I could use them in creating an image using PHPs […]

Visio Shape packs for HP, Aruba, IBM and Other Vendors and Products, great for use in technical documentation

Just a quick one today.  I was in the middle of documenting some of our storage and server setups and wanted some more accurate shapes for our HP Storage arrays and Servers and stumbled upon Visiocafe who have a treasure trove of shapes for Visio 2003, 2007 and 2010. I’ve been using the HP ones […]

How to Configure the Management IP of a Palo Alto Firewall through a console connection

So I’ve recently started experimenting with a Palo Alto VM Firewall that we are about to trial.  Unfortunately they don’t offer a Hyper-V virtual machine so I’ve had to stick this into dev our ESXi host. After importing the .ovf, I edited the network adapters onto the right VLANs for me to get it going […]