FromMediaType
Leave feedback
On this page
Maps file media type to file type e.g. ‘application/pdf’ will be mapped to PDF.
public static FileType FromMediaType(string mediaType)
| Parameter | Type | Description |
|---|---|---|
| mediaType | String | File media type e.g. application/pdf. |
Returns corresponding media type when found, otherwise returns default Unknown file type.
- class FileType
- namespace GroupDocs.Viewer
- assembly GroupDocs.Viewer
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.