1. 接收file对象
reqparse
parser.add_argument('file',
type=werkzeug.datastructures.FileStorage,
location='files')
or
request.files['file']
2. 返回附件(flask_restful)
from flask import make_response
path = file_path + filename
response = make_response(send_file(path,
mimetype='application/octet-stream',