MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / files

Method files

21-async/mojifinder/bottle.py:1107–1116  ·  view source on GitHub ↗

File uploads parsed from `multipart/form-data` encoded POST or PUT request body. The values are instances of :class:`FileUpload`.

(self)

Source from the content-addressed store, hash-verified

1105
1106 @DictProperty('environ', 'bottle.request.files', read_only=True)
1107 def files(self):
1108 """ File uploads parsed from `multipart/form-data` encoded POST or PUT
1109 request body. The values are instances of :class:`FileUpload`.
1110
1111 """
1112 files = FormsDict()
1113 for name, item in self.POST.allitems():
1114 if isinstance(item, FileUpload):
1115 files[name] = item
1116 return files
1117
1118 @DictProperty('environ', 'bottle.request.json', read_only=True)
1119 def json(self):

Callers

nothing calls this directly

Calls 2

FormsDictClass · 0.85
allitemsMethod · 0.80

Tested by

no test coverage detected