7
如何在使用put
請求時訪問Tornado上傳的文件?用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.
'bytes'只接受一個參數(python 2.7),有沒有錯字? – daniel