[PR #16874] [CLOSED] FIX: Show Content of Uploaded File in FileItemModal.svelte #39896

Closed
opened 2026-04-25 12:19:47 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/16874
Author: @rgaricano
Created: 8/24/2025
Status: ❌ Closed

Base: dev ← Head: dev-Fix_file_content_uploaded_in_message


📝 Commits (1)

  • effb93d FIX: Show Content of Uploaded File in FileItemModal.svelte

📊 Changes

1 file changed (+17 additions, -0 deletions)

View changed files

📝 src/lib/components/common/FileItemModal.svelte (+17 -0)

📄 Description

FIX: Show Content of Uploaded File in FileItemModal.svelte

Problem: Content of uploaded files added to the message (e.g. text or xlsx) is not displayed in the FileItemModal, it simply appears as "No Content". However, the embedded is successful and the content can be displayed simply by clicking the file link in the modal.

This feature was working propertly in v0.6.22 with the same FileItem & FileItemModal files, but not in the dev v.0.6.26

With this update, that repopulate item.file.data.content, the content is displayed correctly.

Note: This is a quick fix to fit the current structure, but I think try/catch clauses are needed here.


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/16874 **Author:** [@rgaricano](https://github.com/rgaricano) **Created:** 8/24/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev-Fix_file_content_uploaded_in_message` --- ### 📝 Commits (1) - [`effb93d`](https://github.com/open-webui/open-webui/commit/effb93d66abede0e20d69df191bf1f6ddb52981d) FIX: Show Content of Uploaded File in FileItemModal.svelte ### 📊 Changes **1 file changed** (+17 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/common/FileItemModal.svelte` (+17 -0) </details> ### 📄 Description ### FIX: Show Content of Uploaded File in FileItemModal.svelte **Problem:** Content of uploaded files added to the message (e.g. text or xlsx) is not displayed in the FileItemModal, it simply appears as "No Content". However, the embedded is successful and the content can be displayed simply by clicking the file link in the modal. This feature was working propertly in v0.6.22 with the same FileItem & FileItemModal files, but not in the dev v.0.6.26 With this update, that repopulate item.file.data.content, the content is displayed correctly. **Note**: This is a quick fix to fit the current structure, but I think try/catch clauses are needed here. ___ ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/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-25 12:19:47 -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#39896