Allow IIS to serve files without extensions

Sometimes you need to serve a file that has no extension because the program that creates the file doesn’t set an extension. This is handy when trying to serve a file from EasyPal by Erik VK4AES.

Use the following web.config to allow the file to be served and its content to be interpreted by the browser after its downloaded:

<?xml version="1.0" encoding="UTF-8"?>
    <configuration>
         <system.webServer>
             <staticContent>
                 <clear />
                 <mimeMap fileExtension="." mimeType="*/*" />
             </staticContent>
         </system.webServer>
</configuration>


Leave a Reply

Your email address will not be published. Required fields are marked *