(self, chunk)
| 27 | self.value = '' |
| 28 | |
| 29 | def write(self, chunk): |
| 30 | if self.filename: |
| 31 | with open(self.path, 'ab') as f: |
| 32 | f.write(chunk) |
| 33 | return |
| 34 | |
| 35 | self.value += chunk.decode('utf-8') |
| 36 | |
| 37 | |
| 38 | HttpFormFile = namedtuple('HttpFormFile', ['filename', 'path']) |
no outgoing calls