.Tang

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

获取前端上传文件 

importfile前端取的名字
upload_file = self.request.files.get('importfile', '')

取出来的格式

[{'body': 'abcdefg', 'content_type': u'text/plain', 'filename': u'111.txt'}]

 for 遍历 在通过字典取值

posted on 2018-04-14 18:19  .Tang  阅读(357)  评论(0编辑  收藏  举报