mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #21729] [CLOSED] fix: correct MIME type for .ts/.tsx/.jsx files to prevent upload rejection #26246
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/21729
Author: @stakeswky
Created: 2/22/2026
Status: ❌ Closed
Base:
main← Head:fix/ts-file-mime-type-misdetection📝 Commits (1)
3d5cdaffix: correct MIME type for .ts/.tsx/.jsx files to prevent upload rejection📊 Changes
1 file changed (+28 additions, -0 deletions)
View changed files
📝
backend/open_webui/routers/files.py(+28 -0)📄 Description
Fixes #21454
TypeScript (.ts) files were being rejected with "File type video/vnd.dlna.mpeg-tts is not supported for processing" because browsers misdetect them as MPEG Transport Stream video files.
This fix:
Tested that .ts files now map to text/typescript and video/image files are unaffected.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.