Hi Peter, as a co-maintainer of django-filer I experienced similar problems. Often you can not rely on the MIME-type provided by the uploading browser.
In your situation, one possible solution would be to guess the MIME-type by looking at the magic header of the received file. For this purpose you can use the filetype <https://pypi.org/project/filetype/>-library. – Jacob -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/37df5e10-e0fa-4694-a933-93dddbcedf0dn%40googlegroups.com.