File validation based on Magic Numbers, Extension and Size
You can validate files based on
Extension and Size using the File Validator library
File Size Validation
In addition to the validation of files based on MIME and ... you can also validate files by size.
Support for django
Provide ValidatedFilefield and DjangoFileValidator for file validation in Django