We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c8cfcb commit 41321a1Copy full SHA for 41321a1
demo/site/index.html.py
@@ -8,4 +8,4 @@ def handler(self):
8
<li><a href="upload.html">文件上传</a></li>
9
<li><a href="form.html">表单数据</a></li>
10
</ul>
11
- '''
+ '''
demo/site/upload.py
@@ -1,4 +1,4 @@
1
def handler(self):
2
files = self.files
3
- print files
4
- return 'ok'
+ for fobj in files.values():
+ yield fobj.read()
0 commit comments