【发布时间】:2012-10-09 10:14:41
【问题描述】:
当使用put 请求时,如何在 Tornado 中访问上传的文件?
@require_basic_auth
class UploadFile(tornado.web.RequestHandler):
def put(self, params):
path = calculate_path(params)
# TODO: create an empty binary file at path and then copy
# the request input stream to it.
【问题讨论】:
标签: python python-3.x tornado