file validator
— at Version 5
I want to add a file validator to Django using the native Python library called mimetypes https://docs.python.org/3/library/mimetypes.html
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 wrote a file validator library using Python, which you can use using the link below and see its codes:
https://github.com/rzashakeri/file_validator
Change History
(5)
Description: |
modified (diff)
|
Summary: |
file validator → file validator - validate file use mime
|
Summary: |
file validator - validate file use mime → file validator - validating file with mime and file magic numbers
|
Summary: |
file validator - validating file with mime and file magic numbers → file validator - validating file with mime and magic numbers
|
Description: |
modified (diff)
|
Summary: |
file validator - validating file with mime and magic numbers → file validator
|