KnownMimeTypes.TryGet method
namespace: Serenity.Web assembly: Serenity.Net.Web
Gets MIME type for a given file
public static string TryGet(string path)
parameter | description |
---|---|
path | File name whose MIME type will be determined. Its only extension part will be used. |
Return Value
Determined mime type for given file. "application/octet-stream" otherwise.
See Also
- class KnownMimeTypes