I want to get the extension from a MimeType.
For example:
video/mp4 ----> mp4
application/x
There are two ways generally:
The second approach is really not good, so I offer it only for completion. For the first approach you can use this resource: https://www.freeformatter.com/mime-types-list.html
I would use HashMap - the key being the MimeType and the value be the extension (or similar).