
## from_file_extension {#str}

Creates a new MIME type based on file extension.


### Returns 


The new instance of MIME type


```python
def from_file_extension(self, file_name):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| file_name | str | The name of the file. |



### See Also
* module [`aspose.html`](../../)
* class [`MimeType`](/html/python-net/aspose.html/mimetype)
