[PR #3416] [CLOSED] Skip too large files to read #4279

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3416
Author: @marcin-golebiowski
Created: 3/7/2025
Status: Closed

Base: masterHead: max_file_size_512MB


📝 Commits (1)

  • 532307e Skip too large files to read

📊 Changes

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

View changed files

📝 server/utils/files/index.js (+5 -0)

📄 Description

Pull Request Type

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

Relevant Issues

It's not possible to view documents if there is a file bigger than 512 MB in documents.

What is in this change?

Skipping the reading the file when the size is bigger than 512 MB.

Additional Information

By preemptively filtering out oversized files, we improve reliability and maintain system efficiency.
Oversized files can happen due to big PDFs with images.

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/3416 **Author:** [@marcin-golebiowski](https://github.com/marcin-golebiowski) **Created:** 3/7/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `max_file_size_512MB` --- ### 📝 Commits (1) - [`532307e`](https://github.com/Mintplex-Labs/anything-llm/commit/532307e390fb6f5d3840eefb7e5a70f2c9ef54e6) Skip too large files to read ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/files/index.js` (+5 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [X] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues It's not possible to view documents if there is a file bigger than 512 MB in documents. ### What is in this change? Skipping the reading the file when the size is bigger than 512 MB. ### Additional Information By preemptively filtering out oversized files, we improve reliability and maintain system efficiency. Oversized files can happen due to big PDFs with images. ### Developer Validations - [X] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated - [X] I have tested my code functionality - [ ] 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:35:30 -05:00
yindo closed this issue 2026-02-22 18:35:30 -05:00
yindo changed title from [PR #3416] Skip too large files to read to [PR #3416] [CLOSED] Skip too large files to read 2026-06-05 15:17:45 -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#4279