We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a59b634 + 8a6605d commit 84ae836Copy full SHA for 84ae836
doc/parsing.rst
@@ -245,6 +245,7 @@ and to set the type to :class:`~werkzeug.datastructures.FileStorage`.
245
@api.expect(upload_parser)
246
class Upload(Resource):
247
def post(self):
248
+ args = upload_parser.parse_args()
249
uploaded_file = args['file'] # This is FileStorage instance
250
url = do_something_with_file(uploaded_file)
251
return {'url': url}, 201
0 commit comments