[PR #20788] [CLOSED] fix: uploadFileHandler is not awaited and the error messages don't show #25783

Closed
opened 2026-04-20 06:07:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/20788
Author: @lorenzophys
Created: 1/19/2026
Status: Closed

Base: devHead: fix-uploadfilehandler


📝 Commits (1)

  • 28fd67a fix: await uploadFileHandler

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 src/lib/components/chat/MessageInput.svelte (+2 -2)

📄 Description

Changelog Entry

Description

When uploading files not allowed by the RAG_ALLOWED_FILE_EXTENSIONS variable, there should be a red error message in the top-right corner of the screen explaining why the upload has failed. Instead OpenWebUI fails silently, displaying only a generic violation of the CSP in the JS console.

I found that the error message should already be printed, but uploadFileHandler is not awaited, so the message doesn't actually shows.

Fixed

  • uploadFileHandler is now awaited

Additional Information

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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/20788 **Author:** [@lorenzophys](https://github.com/lorenzophys) **Created:** 1/19/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix-uploadfilehandler` --- ### 📝 Commits (1) - [`28fd67a`](https://github.com/open-webui/open-webui/commit/28fd67a5ceb2f4f763b202a067e10fa2e611575f) fix: await uploadFileHandler ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/MessageInput.svelte` (+2 -2) </details> ### 📄 Description # Changelog Entry ### Description When uploading files not allowed by the `RAG_ALLOWED_FILE_EXTENSIONS` variable, there should be a red error message in the top-right corner of the screen explaining why the upload has failed. Instead OpenWebUI fails silently, displaying only a generic violation of the CSP in the JS console. I found that the error message should already be printed, but uploadFileHandler is not awaited, so the message doesn't actually shows. ### Fixed - `uploadFileHandler` is now awaited --- ### Additional Information - This is the first atomic part of this MR: https://github.com/open-webui/open-webui/pull/20664 Please refer to this for the tests and the screenshots ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <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-20 06:07:22 -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#25783