mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #17721] [MERGED] fix: Use generic filename for downloaded images #11323
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/17721
Author: @Classic298
Created: 9/24/2025
Status: ✅ Merged
Merged: 9/25/2025
Merged by: @tjbck
Base:
dev← Head:fix-image-download-filename📝 Commits (3)
ab30b10fix(image): Use generic filename for downloaded imagese201dc9Update ImagePreview.svelte4f22a1cUpdate translation.json📊 Changes
2 files changed (+16 additions, -10 deletions)
View changed files
📝
src/lib/components/common/ImagePreview.svelte(+15 -10)📝
src/lib/i18n/locales/en-US/translation.json(+1 -0)📄 Description
Previously, when downloading a generated image, the filename was set to the AI's response text. This was not ideal as the response text could be long and contain characters that are not suitable for filenames.
This commit changes the behavior to use a generic, translatable filename for downloaded images. The new filename is 'ai_generated_image' (or its translation), which is more user-friendly and consistent.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.