Hello there .
I am working on a Phoenix project and trying to configure support for additional file types in my config.exs. I want to be able to upload .m4a .flac files. How can i do this in config.exs
` Expected a file extension with a known MIME type.
MIME types can be extended in your application configuration as follows:
config :mime, :types, %{
"application/vnd.api+json" => ["json-api"]
}
Got:
"m4a"`
My understanding is that in the config snippet above, application/vnd.api+json is the MIME type, and ājson-apiā is the extension. To be honest I donāt really know what ājson-apiā is supposed to be; doesnāt look like an extension.
Adding something like this to your config/config.ex might do the trick: