Region ID
The REGION_ID
is an abbreviated code that Google assigns
based on the region you select when you create your app. The code does not
correspond to a country or province, even though some region IDs may appear
similar to commonly used country and province codes. For apps created after
February 2020, REGION_ID.r
is included in
App Engine URLs. For existing apps created before this date, the
region ID is optional in the URL.
Learn more about region IDs.
Learn how to upload, transform, store, and serve images dynamically using the Images API. This example describes how to post messages to a public message board and upload an avatar with your greeting.
Creating an Image model in Datastore
You need to update the model from the guestbook sample to store the uploaded image as a blob.
Uploading user images
You will need to modify the HTML form to enable the user to upload an image:
Add a field that enables the user to select a file from their computer to upload.
Add the
enctype
attribute to the form tag and specify this is a multi-part form post.