Changes between Version 8 and Version 9 of Ticket #33942


Ignore:
Timestamp:
08/20/22 01:45:58 (6 months ago)
Author:
Reza Shakeri
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33942 – Description

    v8 v9  
    11I want to add a file validator to Django using the native Python library called mimetypes [https://docs.python.org/3/library/mimetypes.html]
    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, This file validator can check the size of files in addition to mimes and validate both of them.
     2There 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 In addition to file extensions, and it is more reliable and reliable with It supports the use of native Python libraries and many mimes, This file validator can check the size of files in addition to mimes and validate both of them.
    33
    44I wrote a file validator library using Python, which you can use using the link below and see its codes:
Back to Top