View Code? Open in Web Editor
NEW
Django middleware to validate user file uploads, detect specially crafted media files with malicious intent and block them.
License: Mozilla Public License 2.0
Python 97.39%
Shell 1.99%
HTML 0.43%
YARA 0.19%
govtech-csg-xcg-securefileupload's Issues
It appears there may be a typo in the documentation.
Consider validator
vs validators
:
- cover_photo = models.ImageField(upload_to="uploads/", validator=[xcg_file_validator])
+ cover_photo = models.ImageField(upload_to="uploads/", validators=[xcg_file_validator])