IV1T3 / django-middleware-fileuploadvalidation

A Django middleware to validate user file uploads and detect malicious content.
Apache License 2.0
9 stars 2 forks source link

Support More Flexible Responses #44

Closed IV1T3 closed 8 months ago

IV1T3 commented 8 months ago

Summary

Currently, our Django FileUploadValidation Middleware only returns HttpResponseBadRequest when it encounters a problem with a file upload. This behavior can be restrictive and may not suit all use cases in modern web applications. This issue proposes enhancements to make our response handling more flexible and adaptable to various needs.

Current Behavior

Proposed Improvements