# coding=utf-8
__author__ = 'fang'
import time
import datetime
import tornado.gen
import tornado.web
import tornado.ioloop

from web import BaseHandler

class FileHandler(BaseHandler):
    def get(self):
        return self.render('file/file.html')

    @tornado.web.authenticated
    @tornado.web.asynchronous
    def post(self):
        print self.request.files
        file = self.request.files['files']
        print file
        self.write(file)