class documentation

class TemporaryFileUploadHandler(FileUploadHandler): (source)

View In Hierarchy

Upload handler that streams data into a temporary file.

Method file_complete Signal that a file has completed. File size corresponds to the actual size accumulated by all the chunks.
Method new_file Create the file object to append to as data is coming in.
Method receive_data_chunk Receive data from the streamed upload parser. ``start`` is the position in the file of the chunk.
Method upload_interrupted Signal that the upload was interrupted. Subclasses should perform cleanup that is necessary for this handler.
Instance Variable file Undocumented

Inherited from FileUploadHandler:

Method __init__ Undocumented
Method handle_raw_input Handle the raw input from the client.
Method upload_complete Signal that the upload is complete. Subclasses should perform cleanup that is necessary for this handler.
Class Variable chunk_size Undocumented
Instance Variable charset Undocumented
Instance Variable content_length Undocumented
Instance Variable content_type Undocumented
Instance Variable content_type_extra Undocumented
Instance Variable field_name Undocumented
Instance Variable file_name Undocumented
Instance Variable request Undocumented
def file_complete(self, file_size): (source)

Signal that a file has completed. File size corresponds to the actual size accumulated by all the chunks. Subclasses should return a valid ``UploadedFile`` object.

def new_file(self, *args, **kwargs): (source)

Create the file object to append to as data is coming in.

def receive_data_chunk(self, raw_data, start): (source)

Receive data from the streamed upload parser. ``start`` is the position in the file of the chunk.

def upload_interrupted(self): (source)

Signal that the upload was interrupted. Subclasses should perform cleanup that is necessary for this handler.

Undocumented