MCPcopy
hub / github.com/django/django / parse_file_upload

Method parse_file_upload

django/http/request.py:385–397  ·  view source on GitHub ↗

Return a tuple of (POST QueryDict, FILES MultiValueDict).

(self, META, post_data)

Source from the content-addressed store, hash-verified

383 self._multipart_parser_class = multipart_parser_class
384
385 def parse_file_upload(self, META, post_data):
386 """Return a tuple of (POST QueryDict, FILES MultiValueDict)."""
387 self.upload_handlers = ImmutableList(
388 self.upload_handlers,
389 warning=(
390 "You cannot alter upload handlers after the upload has been "
391 "processed."
392 ),
393 )
394 parser = self.multipart_parser_class(
395 META, post_data, self.upload_handlers, self.encoding
396 )
397 return parser.parse()
398
399 @property
400 def body(self):

Callers 1

_load_post_and_filesMethod · 0.95

Calls 3

ImmutableListClass · 0.90
parseMethod · 0.45

Tested by

no test coverage detected