Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ export function UploadDialogContainer(props: UploadDialogContainerProps) {
locale: {
strings: { noDuplicates: formatMessage(translations.noDuplicates) },
pluralize: (n: number) => (n === 1 ? 0 : 1)
},
onBeforeFileAdded: () => {
// There's a default duplicate check in Uppy (if an item was already added in current session). We're overriding this behavior to handle the duplicate files
// later when the file is added to the list of files to upload.
return true;
}
}).use(XHRUpload, xhrOptions);
onFileAdded &&
Expand Down