element-hq / element-hq/element-web

When saving a file, use unique name if file exists already

Open
#32,136 3 comments 0 reactions 0 assignees View on GitHub
A-Electron A-File-Upload O-Frequent T-Enhancement T-Feature Z-Upstream
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Your use case

#### What would you like to do?
When saving a file and a file already exists with the same name, make the save dialog use a new unique filename.

#### Why would you like to do it?
Currently when saving images for example some file types are always saved as image.xxx which causes a problem when saving more than one. Each subsequent file has to be manually renamed.

#### How would you like to achieve it?
With something as simple as:
if image.png exists the saving dialog will give the new file the name image1.png...

### Have you considered any alternatives?

There are none.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.