Having a problem with a client site. They have a contact form with an attachment. People were having problem with .dwg files. XSS filtering isn’t on, but the files were still blocked due to the mime type not being allowed. Digging into this I found out there are at least 9 different possible mime types for dwg files.
Questions is, how do I add more than one mime type for a single file type in system/lib/mimes.php?
I don’t know how this file is processed, but I’d assume it being a simple array that the value has to match the key: “filetype” => “mime type”. I added application/dwg for now and we’re still testing it, but unfortunately we don’t know every program the users might use, so what if we need to allow more than one mime type for one file type?