View source on GitHub |
Base class for creation blob upload handlers.
Inherits From: expected_type
google.appengine.ext.blobstore.BlobstoreUploadHandler()
Methods
get_file_infos
get_file_infos(
environ, field_name=None
)
Get the file infos associated to the uploads sent to this handler.
Args | |
---|---|
environ
|
a WSGI dict describing the HTTP request (See PEP 333). |
field_name
|
Only select uploads that were sent as a specific field. Specify None to select all the uploads. |
Returns | |
---|---|
A list of FileInfo records corresponding to each upload. Empty list if there are no FileInfo records for field_name. |
get_uploads
get_uploads(
environ, field_name=None
)
Get uploads sent to this handler.
Args | |
---|---|
environ
|
a WSGI dict describing the HTTP request (See PEP 333). |
field_name
|
Only select uploads that were sent as a specific field. |
Returns | |
---|---|
A list of BlobInfo records corresponding to each upload. Empty list if there are no blob-info records for field_name. |
post
post(
environ
)
Override this method to handle POST requests to this WSGI handler.
This method is called internally by call if an instance of this class is used as a WSGI callable app, and the HTTP request being handled is a POST request.
Args | |
---|---|
environ
|
a WSGI dict describing the HTTP request (See PEP 333). |
Returns | |
---|---|
response
|
a string containing body of the response |
status
|
HTTP status code of enum type http.HTTPStatus |
headers
|
a list of 2-tuples containing Response headers |
__call__
__call__(
environ, start_response
)
Call self as a function.