How do I access the uploaded file in Tornado, when using a put request?
@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.
…was what I needed.
Found on some ActiveState pages.