diff --git a/flask/wrappers.py b/flask/wrappers.py index 06f60beb..8ea4b840 100644 --- a/flask/wrappers.py +++ b/flask/wrappers.py @@ -107,7 +107,7 @@ class Request(RequestBase): # subclass that raises a different error for key errors. ctx = _request_ctx_stack.top if ctx is not None and ctx.app.debug and \ - self.mimetype != 'multipart/form-data': + self.mimetype != 'multipart/form-data' and not self.files: make_enctype_error_multidict(self)