Skip to content

Template picker does not handle file name conflicts #46875

@juliusknorr

Description

@juliusknorr

Steps to reproduce

  1. Already have a "New document.odt" in the current directory
  2. Create a new file from a template
  3. See "New document.odt" as the file name
  4. Continue to create that file
  5. See an error "Unable to create new file from template"

How it should behave

  • Ideally we show that there is a naming conflict already when entering the name
  • Create a new unique filename by appending a number e.g. "New document (2).odt" as a predefined name
  • Show a more detailed error message as the server already responds with:
Screenshot 2024-07-30 at 14 20 45

@elzody Maybe you can check that when looking into the template picker for nextcloud/richdocuments#3852

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions