diff --git a/studio-ui/ui/app/src/components/UploadDialog/UploadDialogContainer.tsx b/studio-ui/ui/app/src/components/UploadDialog/UploadDialogContainer.tsx index 2f11703a1..0902e66ac 100644 --- a/studio-ui/ui/app/src/components/UploadDialog/UploadDialogContainer.tsx +++ b/studio-ui/ui/app/src/components/UploadDialog/UploadDialogContainer.tsx @@ -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 &&