I also created a Python
[file_validator](https://github.com/rzashakeri/file_validator) library
where, in addition to the Python library, three third-party libraries also
perform validation operations.
--
Ticket URL: <https://code.djangoproject.com/ticket/33942>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> There is a file validator in Django, but it only validates files using
> the extension, which is not very reliable. According to the
> documentation, I wrote a file validator that checks the magic numbers
> (mimes) of the files, and it is more reliable and reliable with It
> supports the use of native Python libraries and many mimes
>
> I also created a Python
> [file_validator](https://github.com/rzashakeri/file_validator) library
> where, in addition to the Python library, three third-party libraries
> also perform validation operations.
New description:
There is a file validator in Django, but it only validates files using the
extension, which is not very reliable. According to the documentation, I
wrote a file validator that checks the magic numbers (mimes) of the files,
and it is more reliable and reliable with It supports the use of native
Python libraries and many mimes
--
--
Ticket URL: <https://code.djangoproject.com/ticket/33942#comment:1>