class documentation

class SimpleUploadedFile(InMemoryUploadedFile): (source)

View In Hierarchy

A simple representation of a file, which just has content, size, and a name.

Class Method from_dict Create a SimpleUploadedFile object from a dictionary with keys: - filename - content-type - content
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):

Method __repr__ Undocumented
Class Variable name Undocumented
Instance Variable charset Undocumented
Instance Variable content_type Undocumented
Instance Variable content_type_extra Undocumented
Instance Variable size Undocumented
Method _get_name Undocumented
Method _set_name Undocumented
Instance Variable _name Undocumented
@classmethod
def from_dict(cls, file_dict): (source)

Create a SimpleUploadedFile object from a dictionary with keys: - filename - content-type - content

def __init__(self, name, content, content_type='text/plain'): (source)