Checklist
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
Checklist
masterbranch 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