android icon indicating copy to clipboard operation
android copied to clipboard

Option to overwrite on upload

Open pacoandres opened this issue 3 years ago • 3 comments

When I upload to the server a file which name exists, the app creates another file with a number (2, 3, ....) appended to the name.

I'd like the app to have the same behavior the web client has, to ask me for overwriting or create a new file with a modified name.

I'm using version 2.19 on android 8.1.

Please let me know if this happens because I'm doing something wrong.

And thanks for such a good job and sorry for my bad English.

pacoandres avatar Feb 16 '22 18:02 pacoandres

Thanks a lot for your proposal @pacoandres. The behaviour you described is also the web's one, but, mobile clients adds the sequential number to make it more simple. We will review, in case a better solution is feasible.

jesmrec avatar Feb 16 '22 19:02 jesmrec

I'm trying to modify the client for suggesting a pull request (or just for me if it's not accepted) but when trying to overwrite the file on the server the response is 423 (locked) then retry and it works. I can't find the reason for the locked response code. Does anyone have any idea about this? Thanks.

pacoandres avatar Feb 26 '22 09:02 pacoandres

Ongoing: https://github.com/owncloud/android/pull/4062

jesmrec avatar Jun 13 '23 12:06 jesmrec