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

SAML SSO for FortiWeb Admin interface

I was recently engaged with a large health-care provider in deploying a set of FortiWeb VMs to protect a number of web applications. Part of this deployment included setting up Single-Sign on for the admin interface using Microsoft Entra ID (Azure AD). While the process is fairly straightforward it is a little confusing at some […]

Letting Exchange accept Mail from other domains

One of the usual things I perform as an IT Consultant is maintenance and configuration tasks on Exchange. One of the most requested tasks is accepting e-mail for more than one domain. Most of my clients run Windows SBS Server 2008 which comes with Exchange 2007. In this article I will walk through accepting mail […]

Renaming a Hyper-V Failover Cluster

If you find yourself taking over a cluster with a name that is silly or doesn’t make sense, you can rename it without much issue. Your main thing to watch out for are backup software that target the cluster (such as Veeam or DPM). You just need to ensure they are reconfigured to use the […]