From a4f11cfd87ec8e97a0f1dedbbf4603dec376b45a Mon Sep 17 00:00:00 2001 From: Jeff McMillen Date: Mon, 9 Dec 2024 16:25:40 -0600 Subject: [PATCH] Still trying to only delete one oversized file at a time --- .../components/_common/Form/FileInputDropZone.jsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/client/src/components/_common/Form/FileInputDropZone.jsx b/client/src/components/_common/Form/FileInputDropZone.jsx index 9a33b9809..567e13b78 100644 --- a/client/src/components/_common/Form/FileInputDropZone.jsx +++ b/client/src/components/_common/Form/FileInputDropZone.jsx @@ -45,6 +45,10 @@ function FileInputDropZone({ } }; + const refreshRejectedFiles = () => { + setRejectedFiles(previous => rejectedFiles); + } + const showFileList = (files && files.length > 0) || rejectedFiles.length > 0; return ( @@ -77,7 +81,16 @@ function FileInputDropZone({