'Creates a SimpleUploadedFile object from
a dictionary object with the following keys:
- filename
- content-type
- content'

def from_dict(cls, file_dict):

    return cls(file_dict['filename'], file_dict['content'], file_dict.get('content-type', 'text/plain'))
