From dca77ba71a208ed1b0bb89a4ceb90e2d747abf3e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 18 Mar 2024 10:10:33 -0400 Subject: [PATCH] fix: add patch for uppy tus to filter on files with a custom uploader property set to tus --- patches/@uppy+tus+3.5.3.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/@uppy+tus+3.5.3.patch diff --git a/patches/@uppy+tus+3.5.3.patch b/patches/@uppy+tus+3.5.3.patch new file mode 100644 index 0000000..5dcc0a8 --- /dev/null +++ b/patches/@uppy+tus+3.5.3.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@uppy/tus/lib/index.js b/node_modules/@uppy/tus/lib/index.js +index 1e0a1bb..ba95bb5 100644 +--- a/node_modules/@uppy/tus/lib/index.js ++++ b/node_modules/@uppy/tus/lib/index.js +@@ -506,7 +506,7 @@ function _getCompanionClientArgs2(file) { + } + async function _uploadFiles2(files) { + const filesFiltered = filterNonFailedFiles(files); +- const filesToEmit = filterFilesToEmitUploadStarted(filesFiltered); ++ const filesToEmit = filterFilesToEmitUploadStarted(filesFiltered).filter(file => file?.uploader == 'tus'); + this.uppy.emit('upload-start', filesToEmit); + await Promise.allSettled(filesFiltered.map(file => { + if (file.isRemote) {