文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit d7250f00 by 李景熙

修改删除文件变量命名

parent 3821a229
......@@ -45,7 +45,7 @@ def download(fileName):
@uploadDownload.route('/delFile', methods=['POST'])
def delFile():
data = request.get_json(silent=True)
fileName=data['filename']
fileName = data['url']
file_dir = os.path.join(basedir, UPLOAD_FOLDER, fileName)
if not os.path.exists(file_dir):
return jsonify({"code": 0, "errmsg": u"failed"})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment