fix: add patch for uppy tus to filter on files with a custom uploader property set to tus
This commit is contained in:
parent
7f26bc1060
commit
dca77ba71a
|
@ -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) {
|
Loading…
Reference in New Issue