A modular Django middleware to validate user file uploads, detect specially crafted media files with malicious intent and either sanitize or block them afterward.
Project description
django-middleware-fileuploadvalidation
Installing
Soon, this package can be installed via pip:
$ pip install django-middleware-fileuploadvalidation
Then add django_fileuploadvalidation.middleware.FileUploadValidationMiddleware
to the end of your MIDDLEWARE
in settings.py.
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
...,
"django_fileuploadvalidation.middleware.FileUploadValidationMiddleware",
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for django_middleware_fileuploadvalidation-0.1.2b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2cdb012b2e763e626b8be2b10f339b3663f6aa1170616b222c882690be26689 |
|
MD5 | c5faff5ef2dfa2f4a8a3e9fd3d843fc2 |
|
BLAKE2b-256 | af694998513d7d4d86aa4c527a49151d9c5a13517f6fd18d013a4a438c298c47 |