class FileUploadHandler:
Known subclasses: django.core.files.uploadhandler.MemoryFileUploadHandler
, django.core.files.uploadhandler.TemporaryFileUploadHandler
Method | file_complete |
Signal that a file has completed. File size corresponds to the actual size accumulated by all the chunks. |
Method | handle_raw_input |
Handle the raw input from the client. |
Method | new_file |
Signal that a new file has been started. |
Method | receive_data_chunk |
Receive data from the streamed upload parser. start is the position in the file of the chunk. |
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 |
django.core.files.uploadhandler.MemoryFileUploadHandler
, django.core.files.uploadhandler.TemporaryFileUploadHandler
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.
django.core.files.uploadhandler.MemoryFileUploadHandler
Handle the raw input from the client.
Parameters:
Unknown Field: input_data | |
An object that supports reading via .read(). | |
Unknown Field: meta | |
request.META. | |
Unknown Field: content_length | |
The (integer) value of the Content-Length header from the client. | |
Unknown Field: boundary | |
The boundary from the Content-Type header. Be sure to prepend two '--'. |
django.core.files.uploadhandler.MemoryFileUploadHandler
, django.core.files.uploadhandler.TemporaryFileUploadHandler
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).
django.core.files.uploadhandler.MemoryFileUploadHandler
, django.core.files.uploadhandler.TemporaryFileUploadHandler