From af698e59fcb19975dfc31463efcb623747a8b608 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 23 Mar 2020 18:23:40 +0800 Subject: [PATCH] update --- src/base/single/input/file.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index e5ccf83f8..a7c99f985 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -264,6 +264,7 @@ // attachO.fileSize = responseText.length; try { + // decodeURIComponent特殊字符可能有问题, catch一下,保证能正常上传 attachO.filename = _global.decodeURIComponent(handler.file.fileName); } catch (e) { attachO.filename = handler.file.fileName;