Skip to content

Commit

Permalink
- updating to keep file in dropbox in event of error to help user cor…
Browse files Browse the repository at this point in the history
…rect their mistake.
  • Loading branch information
elipe17 committed Sep 19, 2023
1 parent 4897d13 commit 1520097
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tdrs-frontend/src/components/FileUpload/FileUpload.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 1520097

Please sign in to comment.