class documentation
class MemoryFileUploadHandler(FileUploadHandler): (source)
File upload handler to stream uploads into memory (used for small files).
Method | file |
Return a file object if this handler is activated. |
Method | handle |
Use the content_length to signal whether or not this handler should be used. |
Method | new |
Signal that a new file has been started. |
Method | receive |
Add the data to the BytesIO file. |
Instance Variable | activated |
Undocumented |
Instance Variable | file |
Undocumented |
Inherited from FileUploadHandler
:
Method | __init__ |
Undocumented |
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 |
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).