Python 3.10 is now available in preview.

google.appengine.ext.blobstore.parse_blob_info

Parses a BlobInfo record from file upload field_storage.

field_storage cgi.FieldStorage that represents an uploaded blob.

A BlobInfo record as parsed from the field_storage instance. This method will return None if field_storage was not defined.

BlobInfoParseError If the provided field_storage does not contain enough information to construct a BlobInfo object.