'Parses the incoming bytestream as a multipart encoded form,
and returns a DataAndFiles object.
`.data` will be a `QueryDict` containing all the form parameters.
`.files` will be a `QueryDict` containing all the form files.'

def parse(self, stream, media_type=None, parser_context=None):

    parser_context = (parser_context or {})
    request = parser_context[u'request']
    encoding = parser_context.get(u'encoding', settings.DEFAULT_CHARSET)
    meta = request.META.copy()
    meta[u'CONTENT_TYPE'] = media_type
    upload_handlers = request.upload_handlers
    try:
        parser = DjangoMultiPartParser(meta, stream, upload_handlers, encoding)
        (data, files) = parser.parse()
        return DataAndFiles(data, files)
    except MultiPartParserError as exc:
        raise ParseError((u'Multipart    form    parse    error    -    %s' % six.text_type(exc)))
