Python 3.9 is now generally available.

google.appengine.ext.blobstore.parse_file_info

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.