class documentation

class SimpleUploadedFile(InMemoryUploadedFile):

View In Hierarchy

A simple representation of a file, which just has content, size, and a name.
Class Method from​_dict No summary
Method __init__ Undocumented

Inherited from InMemoryUploadedFile:

Method chunks Undocumented
Method multiple​_chunks Undocumented
Method open Undocumented
Instance Variable field​_name Undocumented

Inherited from UploadedFile (via InMemoryUploadedFile):

Class Variable name Undocumented
Instance Variable charset Undocumented
Instance Variable content​_type Undocumented
Instance Variable content​_type​_extra Undocumented
Instance Variable size Undocumented
Method __repr__ Undocumented
Method ​_get​_name Undocumented
Method ​_set​_name Undocumented
Instance Variable ​_name Undocumented
@classmethod
def from_dict(cls, file_dict):
Create a SimpleUploadedFile object from a dictionary with keys:
  • filename
  • content-type
  • content
def __init__(self, name, content, content_type='text/plain'):