From a455ada8f4da475626102cef825375516e660655 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 23 十月 2024 21:08:05 +0800
Subject: [PATCH] update

---
 app/api/excel.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/app/api/excel.py b/app/api/excel.py
index ac2c6ef..ef46fe3 100644
--- a/app/api/excel.py
+++ b/app/api/excel.py
@@ -56,8 +56,7 @@
         if file.filename == '':
             return JSONResponse(content={"error": "娌℃湁閫夋嫨鏂囦欢"}, status_code=400)
         if file and allowed_file(file.filename):
-            filename = secure_filename(file.filename)
-            save_path = os.path.join(SOURCE_FILES_PATH, filename)
+            save_path = os.path.join(SOURCE_FILES_PATH, file.filename)
             with open(save_path, 'wb') as buffer:
                 shutil.copyfileobj(file.file, buffer)
             save_path_list.append(save_path)

--
Gitblit v1.8.0