From 150ef99ac0fac2ec01c6de57723c1649403d79bd Mon Sep 17 00:00:00 2001 From: Melloware Date: Sun, 24 Apr 2022 12:00:21 -0400 Subject: [PATCH] Fix #2792: FileUpload advanced mode custom uploader (#2795) --- components/lib/fileupload/FileUpload.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/lib/fileupload/FileUpload.js b/components/lib/fileupload/FileUpload.js index f2a13f2a53..863c59c636 100644 --- a/components/lib/fileupload/FileUpload.js +++ b/components/lib/fileupload/FileUpload.js @@ -144,6 +144,9 @@ export const FileUpload = React.memo(React.forwardRef((props, ref) => { const upload = (files) => { files = files || filesState; + if (files && files.nativeEvent) { + files = filesState; + } if (props.customUpload) { if (props.fileLimit) {