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

Prevent overwriting of files #5773

Closed
n00ybfied opened this issue Feb 14, 2023 · 1 comment · Fixed by #5785
Closed

Prevent overwriting of files #5773

n00ybfied opened this issue Feb 14, 2023 · 1 comment · Fixed by #5785
Labels
Milestone

Comments

@n00ybfied
Copy link

Affected version(s)

4.13.15

Description

If a member uploads multiple files with the same name, only the first one is not overwritten, if the checkbox for "doNotOverwrite" is set in the formfield options.

Example (form with 5 upload fields):

User uploads "screenshot.png" in all 5 fields.
1st file is uploaded as "screenshot.png"
2nd file is renamed to "screenshot_2.png"
From the 3rd file on "screenshot_2.png" is overwritten.

Final result: screenshot.png and screenshot_2.png are in the member's folder.
Desired result would be: Folder with screenshot.png, screenshot_2.png, screenshot_3.png, screenshot_4.png, screenshot_5.png in it. ;)

See: https://community.contao.org/de/showthread.php?84591-Bestehende-Dateien-erhalten&p=569035#post569035

Thank you,
Andreas

@fritzmg
Copy link
Contributor

fritzmg commented Feb 14, 2023

I can confirm the issue. It also happens in Contao 4.9.

@fritzmg fritzmg added this to the 4.9 milestone Feb 14, 2023
@leofeyer leofeyer modified the milestones: 4.9, 4.13 Feb 16, 2023
@fritzmg fritzmg linked a pull request Feb 19, 2023 that will close this issue
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants