From a61e29f073351fc8075dfcd0dbb57f309138dd61 Mon Sep 17 00:00:00 2001 From: meiyuanReact <127736402+meiyuanReact@users.noreply.github.com> Date: Wed, 28 May 2025 17:56:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=96=E6=8B=BD=E4=B8=8D?= =?UTF-8?q?=E7=AC=A6=E5=90=88=E8=A6=81=E6=B1=82=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E4=BB=8D=E7=84=B6=E8=B0=83=E7=94=A8beforeUpload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AjaxUploader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AjaxUploader.tsx b/src/AjaxUploader.tsx index 0de6c29..3461c00 100644 --- a/src/AjaxUploader.tsx +++ b/src/AjaxUploader.tsx @@ -85,7 +85,7 @@ class AjaxUploader extends Component { let acceptFiles = [...files].filter((file: RcFile) => attrAccept(file, accept)); if (multiple === false) { - acceptFiles = files.slice(0, 1); + acceptFiles = acceptFiles.slice(0, 1); } this.uploadFiles(acceptFiles);