Skip to content

Instantly share code, notes, and snippets.

@omsobliga
Created November 29, 2017 07:30
Show Gist options
  • Save omsobliga/f5c3cbde0f3da80d470f48d36acb0800 to your computer and use it in GitHub Desktop.
Save omsobliga/f5c3cbde0f3da80d470f48d36acb0800 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# coding: utf-8
from tornado.web import RequestHandler
class UploadHandler(RequestHandler):
def put(self):
username = self.get_body_argument('username')
password = self.get_body_argument('password')
file_name = self.get_body_argument('fileName')
file_data = self.request.files['fileData'][0]['body']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment