Metadata-Version: 2.1
Name: ninja-put-patch-file-upload-middleware
Version: 0.1.1
Summary: A middleware that allows user to upload files using PUT / Patch
Home-page: https://github.com/baseplate-admin/ninja_put_patch_file_upload_middleware
License: MIT
Keywords: ninja,django-ninja,middlewares,put,patch,file upload
Author: baseplate-admin
Author-email: 61817579+baseplate-admin@users.noreply.github.com
Requires-Python: >=3.7,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
Requires-Dist: asgiref (>=3.6,<4.0)
Requires-Dist: django (>=3.2)
Project-URL: Repository, https://github.com/baseplate-admin/ninja_put_patch_file_upload_middleware
Description-Content-Type: text/markdown

# 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](https://github.com/vitalik/django-ninja/pull/719) which in turn is based on  [django-ninja#417 (comment)](https://github.com/vitalik/django-ninja/issues/417#issuecomment-1092545699)

## Requirements

* Django 3.2+ 
* Asgiref 3.6.0+
* Python 3.7+

## Installation

1. Install the package using pip :
```bash
pip install ninja_put_patch_file_upload_middleware
```
2. Add the middleware to your middleware stack:

```python
# 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](https://github.com/baseplate-admin/ninja_put_patch_file_upload_middleware/blob/master/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 open ask for changes >_<

