'Populate self._post and self._files if the content-type is a form type'

def _load_post_and_files(self):

    if (self.method != u'POST'):
        (self._post, self._files) = (QueryDict(u'', encoding=self._encoding), MultiValueDict())
        return
    if (self._read_started and (not hasattr(self, u'_body'))):
        self._mark_post_parse_error()
        return
    if self.META.get(u'CONTENT_TYPE', u'').startswith(u'multipart/form-data'):
        if hasattr(self, u'_body'):
            data = BytesIO(self._body)
        else:
            data = self
        try:
            (self._post, self._files) = self.parse_file_upload(self.META, data)
        except:
            self._mark_post_parse_error()
            raise
    elif self.META.get(u'CONTENT_TYPE', u'').startswith(u'application/x-www-form-urlencoded'):
        (self._post, self._files) = (QueryDict(self.body, encoding=self._encoding), MultiValueDict())
    else:
        (self._post, self._files) = (QueryDict(u'', encoding=self._encoding), MultiValueDict())
