FlaskFile Uploads


Syntax

  • request.files['name'] # single required file
  • request.files.get('name') # None if not posted
  • request.files.getlist('name') # list of zero or more files posted
  • CombinedMultiDict((request.files, request.form)) # combine form and file data