Skip to content
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

Need option to overwrite file of same name #28

Open
SnowCreative opened this issue Sep 29, 2020 · 2 comments
Open

Need option to overwrite file of same name #28

SnowCreative opened this issue Sep 29, 2020 · 2 comments

Comments

@SnowCreative
Copy link

It would be best to allow people to overwrite files with the same names, to replace old versions, rather than automatically create a new file with "duplicate" added to the name. E.g., add a system setting to either replace or rename.

@sdrenth
Copy link
Contributor

sdrenth commented Sep 30, 2020

@Rainbowtiger I understand why you're saying this, but in some cases a rename is not possible, for example when having directory names which are essentially the same but have lowercase/uppercase characters in them, such as "MYDIR" and "mydir". That's why directories are tmp renamed.

@inreti-sb
Copy link

@sdrenth I think @SnowCreative referred to files only, not directories. My customers and I have the same need.

@SnowCreative There is a system setting called „upload_check_exists“.
Without having installed FileSluggy, this system settings does work.
Even though I would prefer to see a notice (with details e.g. filesizes and last-edited-date from the original and new file to compare this) and the possibility to choose, if I would like to override the file, rename the file or cancel the upload-operation. But that's a core thing/improvement.

In general FileSluggy should keep the possibility from MODX-core to inform the user, that a file with this name already exists in this directory, if system setting „upload_check_exists“ is set to „yes“.
Now, some editors upload the same file a view times because the file is silently uploaded and renamed in the background.
file.pdf, file_duplicate.pdf, file_duplicate_duplicate.pdf, file_duplicate_duplicate_duplicate.pdf

Does anyone have time to take care of this improvement? That would be very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants