From 1520097965172cd301edb5a9737c4a52b41536c0 Mon Sep 17 00:00:00 2001 From: Eric Lipe Date: Tue, 19 Sep 2023 15:33:48 -0600 Subject: [PATCH] - updating to keep file in dropbox in event of error to help user correct their mistake. --- tdrs-frontend/src/components/FileUpload/FileUpload.jsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/tdrs-frontend/src/components/FileUpload/FileUpload.jsx b/tdrs-frontend/src/components/FileUpload/FileUpload.jsx index 35dc66cf1..9df223cd4 100644 --- a/tdrs-frontend/src/components/FileUpload/FileUpload.jsx +++ b/tdrs-frontend/src/components/FileUpload/FileUpload.jsx @@ -96,9 +96,6 @@ function FileUpload({ section, setLocalAlertState }) { // Validate file extension before proceeding const re = /(\.txt|\.ms\d{2}|\.ts\d{2,3})$/i if (!re.exec(file.name)) { - // reject the file and create an error message - createFileInputErrorState(input, dropTarget) - dispatch({ type: FILE_EXT_ERROR, payload: {