class documentation

class TemporaryFileUploadHandler(FileUploadHandler):

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 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
Method __init__ 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):

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):
Create the file object to append to as data is coming in.
def receive_data_chunk(self, raw_data, start):
Receive data from the streamed upload parser. start is the position in the file of the chunk.
def upload_interrupted(self):
Signal that the upload was interrupted. Subclasses should perform cleanup that is necessary for this handler.
file =

Undocumented