## MimeType.FromFileExtension method

Creates a new MIME type based on file extension.

```java
public static MimeType FromFileExtension(String fileName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fileName | String | The name of the file. |

### Return Value

The new instance of MIME type

### See Also

* class [MimeType](../)
* package [com.aspose.html](../../../com.aspose.html/)
* package [Aspose.HTML](../../../)
