¡Sorpréndeme!

How to limit file uploads by format in Django

2024-08-26 0 Dailymotion

In this video I want to share an approach about how to limit file uploads by format in Django. In my code I'm first verifying by file name if the extension is correct. Then I'm verifying by MIME type.

Gist url: https://gist.github.com/InterTuts/5b3f0eb9d54717606b8d438be75c51f6