You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have reduced the issue to the simplest possible case.
I have included a failing test as a pull request. (If you are unable to do so we can still accept the issue.)
Steps to reproduce
Define a POST view to use FileUploadParser
Use curl to upload a 100 byte text/plain file.
The line 149 in parsers.py is buggy. It is expecting a return value from handle_raw_input. MemoryFileUploadHandler::handle_raw_input() doesn't return anything. Django FileUploadHandler::handle_raw_input() doesn't return any value.
Expected behavior
Handle the uploaded file
Actual behavior
Throws the following error
FileUpload parse error - none of upload handlers can handle the stream
The text was updated successfully, but these errors were encountered:
Checklist
master
branch of Django REST framework.Steps to reproduce
The line 149 in parsers.py is buggy. It is expecting a return value from handle_raw_input. MemoryFileUploadHandler::handle_raw_input() doesn't return anything. Django FileUploadHandler::handle_raw_input() doesn't return any value.
Expected behavior
Handle the uploaded file
Actual behavior
Throws the following error
FileUpload parse error - none of upload handlers can handle the stream
The text was updated successfully, but these errors were encountered: