class FileUploadHandler: (source)
Known subclasses: django.core.files.uploadhandler.MemoryFileUploadHandler
, django.core.files.uploadhandler.TemporaryFileUploadHandler
Base class for streaming upload handlers.
Method | __init__ |
Undocumented |
Method | file |
Signal that a file has completed. File size corresponds to the actual size accumulated by all the chunks. |
Method | handle |
Handle the raw input from the client. |
Method | new |
Signal that a new file has been started. |
Method | receive |
Receive data from the streamed upload parser. ``start`` is the position in the file of the chunk. |
Method | upload |
Signal that the upload is complete. Subclasses should perform cleanup that is necessary for this handler. |
Method | upload |
Signal that the upload was interrupted. Subclasses should perform cleanup that is necessary for this handler. |
Class Variable | chunk |
Undocumented |
Instance Variable | charset |
Undocumented |
Instance Variable | content |
Undocumented |
Instance Variable | content |
Undocumented |
Instance Variable | content |
Undocumented |
Instance Variable | field |
Undocumented |
Instance Variable | file |
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: :input_data: An object that supports reading via .read(). :META: ``request.META``. :content_length: The (integer) value of the Content-Length header from the client. :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
Receive data from the streamed upload parser. ``start`` is the position in the file of the chunk.
Signal that the upload is complete. Subclasses should perform cleanup that is necessary for this handler.