module documentation

Base file upload handler classes, and the built-in concrete subclasses

Class FileUploadHandler Base class for streaming upload handlers.
Class MemoryFileUploadHandler File upload handler to stream uploads into memory (used for small files).
Class TemporaryFileUploadHandler Upload handler that streams data into a temporary file.
Exception SkipFile This exception is raised by an upload handler that wants to skip a given file.
Exception StopFutureHandlers Upload handlers that have handled a file and do not want future handlers to run should raise this exception instead of returning None.
Exception StopUpload This exception is raised when an upload must abort.
Exception UploadFileException Any error having to do with uploading files.
Function load_handler Given a path to a handler, return an instance of that handler.
def load_handler(path, *args, **kwargs): (source)

Given a path to a handler, return an instance of that handler. E.g.:: >>> from django.http import HttpRequest >>> request = HttpRequest() >>> load_handler( ... 'django.core.files.uploadhandler.TemporaryFileUploadHandler', ... request, ... ) <TemporaryFileUploadHandler object at 0x...>