A middleware that allows user to upload files using PUT / Patch
Project description
ninja_put_patch_file_upload_middleware
This middleware allows users to upload files using the HTTP PUT or PATCH method. Backports the functionality from django-ninja#719 which in turn is based on django-ninja#417 (comment) which should be available in django-ninja
if django-ninja#397 is merged ( in that case this middleware works as a backport )
Requirements
- Django 3.2+
- Asgiref 3.6.0+
- Python 3.9+
Installation
- Install the package using pip :
pip install ninja_put_patch_file_upload_middleware
- Add the middleware to your middleware stack:
# settings.py
MIDDLEWARE = [
...
"ninja_put_patch_file_upload_middleware.middlewares.process_put_patch",
]
LICENSE
This package is licensed under the MIT License ( same as django-ninja
). See the LICENSE file for more information.
Feature Complete
I am not willing to add any more functionality to this module. This should work as is. Unless there are changes in django
/asgiref
side. Please dont ask for changes >_<
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ninja_put_patch_file_upload_middleware-0.1.2.tar.gz
.
File metadata
- Download URL: ninja_put_patch_file_upload_middleware-0.1.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dacb1f44be5a760a6e91f6d231df611b8364ed0d6a9417f7328281a1b457c5a9 |
|
MD5 | 1dd9f146f1e583f25248bb4eb5e7fea2 |
|
BLAKE2b-256 | 24775c470df131ff9b94c46ae25cf3ae4ab22ea1f1eb4f8fcd0a4adab3af4de0 |
File details
Details for the file ninja_put_patch_file_upload_middleware-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: ninja_put_patch_file_upload_middleware-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bffa785743366aa20d0f599dd855bd207752878f48eb824f0bbf217800b4a85a |
|
MD5 | 02e488405884d21fc067ed916833f196 |
|
BLAKE2b-256 | 096fefb0b550c6628f4a890cfb1cb1646c05c16af0fb67465b193e6ddc89d62d |