Skip to main content

A middleware that allows user to upload files using PUT / Patch

Project description

Downloads

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

  1. Install the package using pip :
pip install ninja_put_patch_file_upload_middleware
  1. 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

File hashes

Hashes for ninja_put_patch_file_upload_middleware-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dacb1f44be5a760a6e91f6d231df611b8364ed0d6a9417f7328281a1b457c5a9
MD5 1dd9f146f1e583f25248bb4eb5e7fea2
BLAKE2b-256 24775c470df131ff9b94c46ae25cf3ae4ab22ea1f1eb4f8fcd0a4adab3af4de0

See more details on using hashes here.

File details

Details for the file ninja_put_patch_file_upload_middleware-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ninja_put_patch_file_upload_middleware-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bffa785743366aa20d0f599dd855bd207752878f48eb824f0bbf217800b4a85a
MD5 02e488405884d21fc067ed916833f196
BLAKE2b-256 096fefb0b550c6628f4a890cfb1cb1646c05c16af0fb67465b193e6ddc89d62d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page