owncloud / web

:dragon_face: Next generation frontend for ownCloud Infinite Scale
https://owncloud.dev/clients/web/
GNU Affero General Public License v3.0
443 stars 157 forks source link

Propose error-avoiding filename on new file creation #7539

Closed hurradieweltgehtunter closed 2 years ago

hurradieweltgehtunter commented 2 years ago

Steps to reproduce

  1. Click on button New -> text file
  2. Do not alter proposed filename ("New file.txt")
  3. Hit "Create"
  4. Click again on button New -> text file

Expected behaviour

The current behaviour is not wrong but the user experience could be improved if the proposed filename would be "New file(2).txt" thus avoiding displaying an error.

Actual behaviour

Error message shows "New file.txt already exists"

grafik

Environment general

Operating system: https://ocis.ocis-wopi.latest.owncloud.works

kulmann commented 2 years ago

Good idea! We have the same logic anyway when the user chose "keep both" in a copy/move conflict situation. Could be reused here.

AlexAndBear commented 2 years ago

Fair enough, good catch!