google.appengine.ext.blobstore.BlobstoreUploadHandler

Base class for creation blob upload handlers.

Inherits From: expected_type

Methods

get_file_infos

View source

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

View source

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

View source

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__

View source

Call self as a function.