File extensions and MIME Types in .NET
I want to get a MIME Content-Type from a given extension (preferably without accessing the physical file). I have seen some questions about this and the methods described to perform this can be resumed in:
I want to get a MIME Content-Type from a given extension (preferably without accessing the physical file). I have seen some questions about this and the methods described to perform this can be resumed in:
I have in my web application an ADO.NET Entity-Framework *.edmx file.
Is there a function to extract the extension from a filename?
I’m working on a certain program where I need to do different things depending on the extension of the file. Could I just use this?