Skip to content

Commit 8a6605d

Browse files
authored
File Upload section of docs needs to set args
1 parent a59b634 commit 8a6605d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/parsing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ and to set the type to :class:`~werkzeug.datastructures.FileStorage`.
245245
@api.expect(upload_parser)
246246
class Upload(Resource):
247247
def post(self):
248+
args = upload_parser.parse_args()
248249
uploaded_file = args['file'] # This is FileStorage instance
249250
url = do_something_with_file(uploaded_file)
250251
return {'url': url}, 201

0 commit comments

Comments
 (0)