Feb 14, 2013
Post comments count0
Post likes count0
Getting a MIME type from a file extension in ASP.NET 4.5
If you've ever implemented a file upload or download scenario in ASP.NET, you've likely come across the situation of having to provide a MIME type based off of a file extension. IIS does this automatically when it serves files, but it seems like in ASP.NET there isn't a good way to provide this functionality. Searches on the web might point you to ...