From 03151ca4fdc1d791107da6e86fab7f352b14998b Mon Sep 17 00:00:00 2001 From: Yu You Date: Mon, 23 Nov 2015 15:40:34 +0200 Subject: [PATCH] A fix to the issue ##3610 A fix to the issue #3610 --- rest_framework/parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/parsers.py b/rest_framework/parsers.py index 2dc808f1a8..4e0a83c5e3 100644 --- a/rest_framework/parsers.py +++ b/rest_framework/parsers.py @@ -183,7 +183,7 @@ def parse(self, stream, media_type=None, parser_context=None): 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") pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy