Showing results for ASP.NET 4.5 - .NET Blog

Feb 14, 2013
0
0

Getting a MIME type from a file extension in ASP.NET 4.5

Jim Wang (WEB)
Jim Wang (WEB)

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 ...

ASP.NET