[PR #808] [MERGED] Generic upload fallback as text file. #3500

Closed
opened 2026-02-22 18:33:54 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/808
Author: @timothycarambat
Created: 2/26/2024
Status: Merged
Merged: 2/26/2024
Merged by: @timothycarambat

Base: masterHead: 807-generic-text-fallback


📝 Commits (3)

📊 Changes

7 files changed (+54 additions, -42 deletions)

View changed files

📝 collector/processSingleFile/index.js (+17 -9)
📝 collector/utils/files/index.js (+29 -0)
📝 frontend/src/components/Modals/MangeWorkspace/Documents/Directory/index.jsx (+0 -3)
📝 frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/FileUploadProgress/index.jsx (+2 -2)
📝 frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/index.jsx (+2 -12)
📝 frontend/src/components/Modals/MangeWorkspace/Documents/index.jsx (+1 -6)
📝 frontend/src/components/Modals/MangeWorkspace/index.jsx (+3 -10)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #807
resolves #747
resolves #593
resolves #290

What is in this change?

Do not block any file upload from frontend
fallback unknown/unsupported types to text if possible
Now can upload any file that can be parsed as raw text - this is most files used with AnythingLLM.

Additional Information

Combined with document pinning this solves most JSON/CSV file demands as well - although we may want to build a custom flow for these types since RAG does not work with them.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/Mintplex-Labs/anything-llm/pull/808 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 2/26/2024 **Status:** ✅ Merged **Merged:** 2/26/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `807-generic-text-fallback` --- ### 📝 Commits (3) - [`757476d`](https://github.com/Mintplex-Labs/anything-llm/commit/757476d2e98dbd513ba51782bb1e8aa3c6288149) Do not block any file upload - [`07470d2`](https://github.com/Mintplex-Labs/anything-llm/commit/07470d238e92a86d7a3d760a22f0e7d88d5a9a51) reduce call for frontend - [`1ea7429`](https://github.com/Mintplex-Labs/anything-llm/commit/1ea7429413698652e7fdd8eae20c15847aa32857) patch ### 📊 Changes **7 files changed** (+54 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `collector/processSingleFile/index.js` (+17 -9) 📝 `collector/utils/files/index.js` (+29 -0) 📝 `frontend/src/components/Modals/MangeWorkspace/Documents/Directory/index.jsx` (+0 -3) 📝 `frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/FileUploadProgress/index.jsx` (+2 -2) 📝 `frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/index.jsx` (+2 -12) 📝 `frontend/src/components/Modals/MangeWorkspace/Documents/index.jsx` (+1 -6) 📝 `frontend/src/components/Modals/MangeWorkspace/index.jsx` (+3 -10) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #807 resolves #747 resolves #593 resolves #290 ### What is in this change? Do not block any file upload from frontend fallback unknown/unsupported types to text if possible Now can upload any file that can be parsed as raw text - this is most files used with AnythingLLM. ### Additional Information Combined with document pinning this solves most JSON/CSV file demands as well - although we may want to build a custom flow for these types since RAG does not work with them. ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:33:54 -05:00
yindo closed this issue 2026-02-22 18:33:54 -05:00
yindo changed title from [PR #808] Generic upload fallback as text file. to [PR #808] [MERGED] Generic upload fallback as text file. 2026-06-05 15:13:44 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3500