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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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)
effb93dFIX: 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.