mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #21498] [CLOSED] fix: TypeScript .ts MIME type misdetection and image URL fetch with wrong headers #64962
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/21498
Author: @quantumnic
Created: 2/16/2026
Status: ❌ Closed
Base:
main← Head:fix/bugfixes📝 Commits (1)
530df3afix: TypeScript .ts files misdetected as video MIME type (#21454) and image URL fetch failing with API headers (#21301)📊 Changes
2 files changed (+22 additions, -4 deletions)
View changed files
📝
backend/open_webui/routers/files.py(+18 -0)📝
backend/open_webui/routers/images.py(+4 -4)📄 Description
Fixes
1. TypeScript .ts files rejected as video MIME type (fixes #21454)
Problem: Browsers detect
.tsfiles asvideo/vnd.dlna.mpeg-ttsorvideo/mp2t, causing Open WebUI to reject them with 'File type not supported for processing'.Fix: Added MIME type correction in the file upload handler for
.ts,.mts,.cts, and.tsxextensions.2. Image generation fails with 403 on external image URLs (fixes #21301)
Problem: Generated image URLs are fetched with API headers (Content-Type: application/json, Authorization), causing 403 on external hosting.
Fix:
get_image_data()no longer forwards API headers when fetching image URLs.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.