mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
[PR #7807] [CLOSED] Fix encoding issues during download #8908
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/7807
Author: @chen2aaron
Created: 12/12/2024
Status: ❌ Closed
Base:
dev← Head:fix/encode📝 Commits (1)
8763ec7Fix encoding issues during download📊 Changes
1 file changed (+5 additions, -10 deletions)
View changed files
📝
backend/open_webui/apps/webui/routers/files.py(+5 -10)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
When I upload a chinese file and want to download it, it will raise error:
The reason is that the method calling Starlette is incorrect. There is no need to pass a header parameter when use
FileResponse, only filename needs to be passed, and Starlette will handle it internally.Related discussions: https://github.com/open-webui/open-webui/discussions/6480
Related PR with Starlette:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.