-
Notifications
You must be signed in to change notification settings - Fork 159
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
Copy and move to a folder where the resource already exists #3751
Comments
WebDAV move/copy can either overwite the existing target or fail with an error. Generally speaking overwrite shall only be done after user confirmation - but this is a UX topic .... |
Webdav API usually doesn't have a mechanism to automatically rename. It might be possible to send a header "If-None-Match" with the value "*" which means "only proceed if the target does not exist". That works at least for PUT, need to check if COPY checks that also. Then if it fails with 409, display the overwrite dialog. |
and if the user does allow overwrite, retry the operation with the overwrite header on COPY |
My user view: Cancel the request Special for us: The file (or maybe folder in the future) could also be locked. What happens then? |
closing in favour of more actionable ticket: #6996 |
Since current behaviour overwrites the original resource, I put there an error message and do not execute the action to prevent data loss. Much better behaviour could be IMO to append a number after the resource name.
I guess this should be done at the API level instead of the client, right? @DeepDiver1975 @PVince81
The text was updated successfully, but these errors were encountered: