MimeTypes
Wisej.Core.MimeTypes
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.5.0.0)
Maps document extensions to content MIME types.
Methods
GetMimeType(fileName)
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%252Fstatic.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=e3d69d73&sv=1)
Returns the MIME mapping for the specified file name.
Parameter | Type | Description |
---|---|---|
fileName | The file name that is used to determine the MIME type. |
Returns: String.
IsKnownType(extension)
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%252Fstatic.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=e3d69d73&sv=1)
Returns if the file extension corresponds to a known mime type.
Parameter | Type | Description |
---|---|---|
extension | The file extension to check. |
Returns: Boolean.
SetMimeType(extension, mimeType)
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%252Fstatic.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=e3d69d73&sv=1)
Adds or changes the mime type for the specified file extension.
Last updated