Skip to content

Commit

Permalink
Merge pull request #7488 from owncloud/prevent-unnecessary-propfind-d…
Browse files Browse the repository at this point in the history
…uring-upload
  • Loading branch information
JammingBen authored Aug 19, 2022
2 parents b8e5df4 + c5e363c commit 25b34b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Prevent unnecessary PROPFIND request during upload

We've removed the unnecessary PROPFIND request at the start of each upload, increasing upload performance especially in larger folders.

https://github.com/owncloud/web/issues/7486
https://github.com/owncloud/web/pull/7488
14 changes: 1 addition & 13 deletions packages/web-app-files/src/components/AppBar/CreateAndUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,7 @@ export default defineComponent({
}
}
let pathFileWasUploadedTo = file.meta.currentFolder
if (file.meta.relativeFolder) {
pathFileWasUploadedTo += file.meta.relativeFolder
}
const fileIsInCurrentPath = pathFileWasUploadedTo === this.currentPath
const fileIsInCurrentPath = file.meta.currentFolder === this.currentPath
if (fileIsInCurrentPath) {
bus.publish('app.files.list.load')
}
Expand Down Expand Up @@ -788,12 +782,6 @@ export default defineComponent({
this.$uppyService.publish('uploadStarted')
await this.createDirectoryTree(files)
this.$uppyService.publish('addedForUpload', files)
const reloadRequired = !!files.find((f) => f.meta.currentFolder === this.currentPath)
if (reloadRequired) {
bus.publish('app.files.list.load')
}
this.$uppyService.uploadFiles(files)
},
Expand Down

0 comments on commit 25b34b0

Please sign in to comment.