Open samandar021 opened 2 years ago
@samandar021
Django by default do not parse files if method is not POST
you can fix this with custom middleware:
https://github.com/vitalik/django-ninja/issues/417#issuecomment-1092545699
Got across the same scenario maybe giving a parameter in ninja to enable file handling in PUT call as well will be a great enhancement.
I am gonna add avatar image to django object , but I cannout PUT image file with extra fields, it is showing error, how can I fix It? @vitalik
and it is giving error like this
422Undocumented | Error: Unprocessable Entity in Swagger UI