Skip to content

Commit

Permalink
Hotfix for file-overwriting from uppy (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs authored Oct 18, 2024
1 parent 21ed72d commit 96ac6a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/src/file_upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ export default function setupUppy(item_id, trigger_selector, reactive_file_list)
for (const file_id in reactive_file_list) {
// console.log(`evaluating ${reactive_file_list[file_id].name} vs ${file.name}`)
if (reactive_file_list[file_id].name == file.name) {
matching_file_id = file_id;
alert(
"A file with this name already exists in the sample. If you upload this, it will update the current file.",
"A file with this name already exists in the sample. If you upload this, it will be duplicated on the current item.",
);
}
}
Expand Down

0 comments on commit 96ac6a9

Please sign in to comment.