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.3.tar.gz.

File metadata

File hashes

Hashes for ninja_put_patch_file_upload_middleware-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dfe75399564f849651faa33eb50c068ad19e684eab5b10bebb66d7c7ce67f365
MD5 3b0ab654b0c55b1c7ecb2cfea6960ce2
BLAKE2b-256 c486eb31eb5c4c06a1acfb32d7e4cc02c3db86098b68fb0d81617081f2d67fcb

See more details on using hashes here.

Provenance

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

Publisher: CI.yml on baseplate-admin/ninja_put_patch_file_upload_middleware

Attestations:

File details

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

File metadata

File hashes

Hashes for ninja_put_patch_file_upload_middleware-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bcb3acaf62dc3ccfa50c9e4d16ccbd894dbc33fa07c0e4b3c12b17d88634a432
MD5 070cb2ccb0240908073e654128612891
BLAKE2b-256 2b30e8c4b9e2149d074e4dada68e58b6fa5097c03fba4dc523a81cb324e3a028

See more details on using hashes here.

Provenance

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

Publisher: CI.yml on baseplate-admin/ninja_put_patch_file_upload_middleware

Attestations:

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