diff --git a/rest_framework/parsers.py b/rest_framework/parsers.py index 2dc808f1a..4e0a83c5e 100644 --- a/rest_framework/parsers.py +++ b/rest_framework/parsers.py @@ -183,7 +183,7 @@ class FileUploadParser(BaseParser): for index, handler in enumerate(upload_handlers): file_obj = handler.file_complete(counters[index]) - if file_obj: + if file_obj is not None: return DataAndFiles({}, {'file': file_obj}) raise ParseError("FileUpload parse error - " "none of upload handlers can handle the stream")