KnownMimeTypes.TryGet method

namespace: Serenity.Web   assemblySerenity.Net.Services

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/unknown" otherwise.

See Also