IV1T3 / django-middleware-fileuploadvalidation

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

Crash if original request is ASGI request #41

Open FMiranda97 opened 1 year ago

FMiranda97 commented 1 year ago

I get a crash when using ASGI. This line fails to convert since ASGIRequest.environ does not exist.

https://github.com/IV1T3/django-middleware-fileuploadvalidation/blob/761518c7db3022283b1e8d0bc3a5ee0e5f4522ab/django_fileuploadvalidation/modules/converter.py#L62

IV1T3 commented 6 months ago

Sorry for the long delay! Working on it!