forked from orbit-oss/flask
Only provide that monkeypatch if all files are missing
This commit is contained in:
parent
23c1dd8db2
commit
3400b78db2
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ class Request(RequestBase):
|
||||||
# subclass that raises a different error for key errors.
|
# subclass that raises a different error for key errors.
|
||||||
ctx = _request_ctx_stack.top
|
ctx = _request_ctx_stack.top
|
||||||
if ctx is not None and ctx.app.debug and \
|
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)
|
make_enctype_error_multidict(self)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue