Changes between Version 1 and Version 5 of Ticket #33942
- Timestamp:
- Aug 19, 2022, 8:28:31 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33942 – Description
v1 v5 1 I want to add a file validator to Django using the native Python library called mimetypes [https://docs.python.org/3/library/mimetypes.html] 1 2 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 3 4 I wrote a file validator library using Python, which you can use using the link below and see its codes: 5 [https://github.com/rzashakeri/file_validator]