Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now available in preview.


Parses a FileInfo record from file upload field_storage.

field_storage cgi.FieldStorage that represents the uploaded file.

FileInfo record as parsed from the field_storage instance. This method will return None if field_storage was not specified.

FileInfoParseError If field_storage does not contain enough information to construct a FileInfo object.