Python 2.7 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Python 2.7
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Python
2.7 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Python.
Stay organized with collections
Save and categorize content based on your preferences.
google.appengine.api.files.blobstore module
Summary
Files API.
Deprecated since version 1.8.1: Use Google Cloud Storage Client library instead.
Blobstore-specific Files API calls.
Contents
- google.appengine.api.files.blobstore.create(mime_type='application/octet-stream', _blobinfo_uploaded_filename=None)source
Create a writable blobstore file.
ParametersReturnsA file name for blobstore file. This file can be opened for write
by File API open function. To read the file or obtain its blob key, finalize
it and call get_blob_key function.
- google.appengine.api.files.blobstore.get_blob_key(create_file_name)source
Get a blob key for finalized blobstore file.
ParametersReturnsAn instance of apphosting.ext.blobstore.BlobKey for corresponding blob
or None if the blob referred to by the file name is not finalized.
Raises
- google.appengine.api.files.blobstore.get_file_name(blob_key)source
Get a filename to read from the blob.
Parametersblob_key – An instance of BlobKey.
ReturnsFile name as string which can be used with File API to read the file.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["This module is part of the Files API and is used for Blobstore-specific operations."],["It has been deprecated since version 1.8.1, recommending the use of the Google Cloud Storage Client library instead."],["The `create` function is used to generate a writable blobstore file, which can later be finalized and read, and requires a MIME type to be defined as well as a optional _blobinfo_uploaded_filename."],["`get_blob_key` retrieves the BlobKey for a finalized blobstore file, requiring the file name from the `create` function, and will return none if it is not finalized."],["`get_file_name` is used to retrieve the associated filename from a BlobKey so that the file can be read through the File API."]]],[]]