Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added locked error message #9940

Merged
merged 7 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog/unreleased/enhancement-folder-locked-error-message
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Display error message for upload to locked folder

Added error message to indicate that the upload failed due to folder being locked.

https://github.com/owncloud/web/pull/9940
https://github.com/owncloud/web/issues/5741
3 changes: 3 additions & 0 deletions packages/web-runtime/src/components/UploadInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,9 @@ export default defineComponent({
}

const errorObject = formatErrorMessageToObject(error.message)
if (this.errors[item.meta.uploadId]?.statusCode === 423) {
return this.$gettext("The folder you're uploading to is locked")
}

switch (errorObject.responseCode) {
case 507:
Expand Down