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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ninja_put_patch_file_upload_middleware-0.1.4.tar.gz.

File metadata

File hashes

Hashes for ninja_put_patch_file_upload_middleware-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7a11642080f351efffe2b9a875114f8ba8a66cc8ef779389617875f619c7e8b8
MD5 288f082ba22a66a03ade1b4b98396267
BLAKE2b-256 12e57ae9a9f99e50432007e70215bb597582974f2eacf25c1ebdaa39e4ce341b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ninja_put_patch_file_upload_middleware-0.1.4.tar.gz:

Publisher: CI.yml on baseplate-admin/ninja_put_patch_file_upload_middleware

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ninja_put_patch_file_upload_middleware-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 42d86a39b93c1373acdd1461337f06db7767189de00a7b97a74345c86084fd93
MD5 488c866e5b0ffee688344af780419531
BLAKE2b-256 100289448ae4e039f3bb72cb8cd7d230d4f35ccf81428091473a7fc6e808c157

See more details on using hashes here.

Provenance

The following attestation bundles were made for ninja_put_patch_file_upload_middleware-0.1.4-py3-none-any.whl:

Publisher: CI.yml on baseplate-admin/ninja_put_patch_file_upload_middleware

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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