Does anyone know if there is an Elixir module, which detects the correct mime type for uploaded files?
I have some issus in my Phoenix project, for example Firefox sets the mime type for pdf files to
“application/download” instead of “application/pdf”.
So I’m looking for a module or help writing a module which can detect this from [file signatures]
Any advice is welcome.