class documentation

class MemoryFileUploadHandler(FileUploadHandler):

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 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
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):
Return a file object if this handler is activated.
def handle_raw_input(self, input_data, META, content_length, boundary, encoding=None):
Use the content_length to signal whether or not this handler should be used.
def new_file(self, *args, **kwargs):

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):
Add the data to the BytesIO file.
activated =

Undocumented

file =

Undocumented