[PR #1977] [CLOSED] fix an issue where images downloaded in safari browser on iphone are text files #36485

Closed
opened 2026-04-25 10:20:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/1977
Author: @Yanyutin753
Created: 5/5/2024
Status: Closed

Base: devHead: download-dev


📝 Commits (2)

  • b03b868 fix an issue where images downloaded in safari browser on iphone are text files
  • 770af15 fix where images downloaded in safari browser on iphone are text files

📊 Changes

2 files changed (+38 additions, -7 deletions)

View changed files

📝 backend/apps/images/main.py (+6 -4)
📝 src/lib/components/common/ImagePreview.svelte (+32 -3)

📄 Description

Pull Request Checklist


Description

fix an issue where images downloaded in safari browser on iphone are text files


Changelog Entry

Added

  • Not specifically cited Mime-types, i created a MimeTypes to get MimeType from file name suffixes.

Fixed

  • fix an issue where images downloaded in safari browser on iphone are text files

Additional Information

  • Through the self-test, now i can download the corresponding file

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/1977 **Author:** [@Yanyutin753](https://github.com/Yanyutin753) **Created:** 5/5/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `download-dev` --- ### 📝 Commits (2) - [`b03b868`](https://github.com/open-webui/open-webui/commit/b03b868fd97791a8163d167db0203226b4056bfa) ✨fix an issue where images downloaded in safari browser on iphone are text files - [`770af15`](https://github.com/open-webui/open-webui/commit/770af159b143887adb9f622f40b4462b1b797d92) ✨fix where images downloaded in safari browser on iphone are text files ### 📊 Changes **2 files changed** (+38 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/images/main.py` (+6 -4) 📝 `src/lib/components/common/ImagePreview.svelte` (+32 -3) </details> ### 📄 Description ## Pull Request Checklist --- ## Description ✨fix an issue where images downloaded in safari browser on iphone are text files --- ### Changelog Entry ### Added - Not specifically cited Mime-types, i created a MimeTypes to get MimeType from file name suffixes. ### Fixed - fix an issue where images downloaded in safari browser on iphone are text files <img src="https://github.com/open-webui/open-webui/assets/132346501/8ab6463b-7120-4c83-9c88-6923a6758a89" height="400"> --- ### Additional Information - Through the self-test, now i can download the corresponding file <img src="https://github.com/open-webui/open-webui/assets/132346501/76b7c394-550d-415d-8d7a-81861fc22050" height="400"> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 10:20:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#36485