Skip to content

fix: uploaded image overwrites an earlier one with the same filename - #751

Open
kaulith wants to merge 2 commits into
frappe:developfrom
kaulith:fix/wiki-webp-filename-collision
Open

fix: uploaded image overwrites an earlier one with the same filename#751
kaulith wants to merge 2 commits into
frappe:developfrom
kaulith:fix/wiki-webp-filename-collision

Conversation

@kaulith

@kaulith kaulith commented Aug 27, 2026

Copy link
Copy Markdown

Description

Pasted clipboard images were all saved as image.png, so their WebP versions were saved to the same /files/image.webp and overwrote previous images. One site had 26 File records pointing to the same URL.

The WebP filename now goes through generate_file_name, like normal Frappe uploads, to ensure each image gets a unique name. file_url and file_name are also updated to match the file actually saved.

Previously overwritten images cannot be recovered and need to be re-uploaded.

Screen.Recording.2026-08-27.at.2.03.03.PM.mov

Ref: https://support.frappe.io/helpdesk/tickets/76287?view=VIEW-HD+Ticket-1252

@kaulith

kaulith commented Aug 27, 2026

Copy link
Copy Markdown
Author

@NagariaHussain

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

Successfully merging this pull request may close these issues.

1 participant