Class InMemoryUploadedFile
A file uploaded into memory (i.e. stream-to-memory).
Declaration
source linkDocumentation
Methods
▶ def __init__(self, file, field_name, name, content_type, size, charset, ...) override ▶ def chunks(self, chunk_size=None) overrideinherited doc Read the file and yield chunks of ``chunk_size`` bytes (defaults to ``File.DEFAULT_CHUNK_SIZE``).
▶ def multiple_chunks(self, chunk_size=None) overrideinherited doc Return ``True`` if you can expect multiple chunks.
This method overrides django.core.files.base.File.multiple_chunks.
NB: If a particular file representation is in memory, subclasses should
always return ``False`` -- there's no good reason to read from memory in
chunks.
▶ def open(self, mode=None) override