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.

google.appengine.ext.blobstore.FileInfo

Details information about uploaded files.

Inherits From: expected_type

This class contains information about blobs stored by an application.

This class is similar to BlobInfo; however, this method does not make use of a key, and the information is not persisted in the datastore.

Properties:

  • content_type: The content type of the uploaded file.
  • creation: The creation date of the uploaded file, or when it was uploaded.
  • filename: The file name that the user selected from their machine.
  • size: The size of the uncompressed file.
  • md5_hash: The MD5 hash value of the uploaded file.
  • gs_object_name: The name of the file that was written to Google Cloud Storage, or None if the file was not uploaded to Google Cloud Storage.

All properties are read-only. Attempting to assign a value to a property will raise an AttributeError.

content_type Returns the content type of the uploaded file.
creation Returns the creation date or upload time of the file.
filename Returns the file name that the user selected.
gs_object_name Returns the name of the file that was written to Cloud Storage.
md5_hash Returns the MD5 hash of the uploaded file.
size Returns the size of the uncompressed file.