From 90f561a0c96bb46a22ccbb7c0cdbcf8199f4780b Mon Sep 17 00:00:00 2001 From: liuxiaoqing Date: Wed, 20 Aug 2025 10:47:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor(alibabacloud=5Fsample):=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 '/uploads/'路由修改为 '/data/uploads/' - 这个改动使得上传文件的 URL路径更加明确,方便管理和访问 --- alibabacloud_sample/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alibabacloud_sample/main.py b/alibabacloud_sample/main.py index 27f5c11..d917884 100644 --- a/alibabacloud_sample/main.py +++ b/alibabacloud_sample/main.py @@ -15,7 +15,7 @@ def index(): @app.route('/assets/') def return_js(filename): return send_from_directory(app.config.get('WEBAPP')+'/assets', str(filename)) -@app.route('/uploads/') +@app.route('/data/uploads/') def return_file(filename): return send_from_directory(app.config.get('UPLOAD_FOLDER'), str(filename)) # 上传文件