From 2c16d286e4b047e026c7eb07f4bdc419a54f380a Mon Sep 17 00:00:00 2001 From: taojinlong Date: Mon, 10 Mar 2025 16:03:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90=E6=95=B0=E6=8D=AE=E6=BA=90?= =?UTF-8?q?=E3=80=91=E8=BF=9C=E7=A8=8B=20Excel=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E6=97=A0=E6=B3=95=E4=B8=8B=E8=BD=BD=E5=B8=A6=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=90=8D=E5=AF=86=E7=A0=81=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/dataease/datasource/provider/ExcelUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java b/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java index 0f3e01d08c..90d446af2b 100644 --- a/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java +++ b/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java @@ -759,6 +759,7 @@ public class ExcelUtils { username = new String(Base64.getDecoder().decode(remoteExcelRequest.getUserName())); password = new String(Base64.getDecoder().decode(remoteExcelRequest.getPasswd())); } + filePath = filePath.startsWith("/") ? filePath.substring(1) : filePath; int port = 21; String suffix = filePath.substring(filePath.lastIndexOf(".") + 1); String tranName = UUID.randomUUID().toString() + "." + suffix;