Skip to content

Commit

Permalink
Merge pull request #10156 from owncloud/fix-parallel-uploads
Browse files Browse the repository at this point in the history
fix: uploading the same files parallel
  • Loading branch information
JammingBen committed Dec 13, 2023
2 parents a4cba76 + 8a1080d commit d571d89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-parallel-uploads
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Uploading the same files parallel

An issue where uploading the same files parallel would cause the upload to fail has been fixed.

https://github.com/owncloud/web/pull/10156
https://github.com/owncloud/web/issues/9220
4 changes: 4 additions & 0 deletions packages/web-app-files/src/HandleUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ export class HandleUpload extends BasePlugin {
* Eventually triggers to upload in Uppy.
*/
async handleUpload(files: UppyFile[]) {
if (!files.length) {
return
}

let filesToUpload = this.prepareFiles(files)

// quota check
Expand Down

0 comments on commit d571d89

Please sign in to comment.