class documentation

class MemoryFileUploadHandler(FileUploadHandler): (source)

View In Hierarchy

File upload handler to stream uploads into memory (used for small files).

Method file_complete Return a file object if this handler is activated.
Method handle_raw_input Use the content_length to signal whether or not this handler should be used.
Method new_file Signal that a new file has been started.
Method receive_data_chunk Add the data to the BytesIO file.
Instance Variable activated Undocumented
Instance Variable file Undocumented

Inherited from FileUploadHandler:

Method __init__ Undocumented
Method upload_complete Signal that the upload is complete. Subclasses should perform cleanup that is necessary for this handler.
Method upload_interrupted Signal that the upload was interrupted. 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)

Return a file object if this handler is activated.

def handle_raw_input(self, input_data, META, content_length, boundary, encoding=None): (source)

Use the content_length to signal whether or not this handler should be used.

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

Signal that a new file has been started. Warning: As with any data from the client, you should not trust content_length (and sometimes won't even get it).

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

Add the data to the BytesIO file.

activated = (source)

Undocumented

Undocumented