[PR #1004] [MERGED] Handle no-mutli-part form data error #3553

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1004
Author: @timothycarambat
Created: 4/1/2024
Status: Merged
Merged: 4/1/2024
Merged by: @timothycarambat

Base: masterHead: handle-no-formdata


📝 Commits (1)

  • f9756f1 Handle no-mutli-part form data error

📊 Changes

4 files changed (+124 additions, -80 deletions)

View changed files

📝 server/endpoints/api/document/index.js (+2 -4)
📝 server/endpoints/system.js (+8 -8)
📝 server/endpoints/workspaces.js (+14 -11)
📝 server/utils/files/multer.js (+100 -57)

📄 Description

Pull Request Type

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

Modify multer implementation to prevent DOS errors from multer file uploader due to sending a mutli-part form data that is empty or with no content length


🔄 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/1004 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 4/1/2024 **Status:** ✅ Merged **Merged:** 4/1/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `handle-no-formdata` --- ### 📝 Commits (1) - [`f9756f1`](https://github.com/Mintplex-Labs/anything-llm/commit/f9756f1ddbb84a718e83a489d0292c20a5ebc707) Handle no-mutli-part form data error ### 📊 Changes **4 files changed** (+124 additions, -80 deletions) <details> <summary>View changed files</summary> 📝 `server/endpoints/api/document/index.js` (+2 -4) 📝 `server/endpoints/system.js` (+8 -8) 📝 `server/endpoints/workspaces.js` (+14 -11) 📝 `server/utils/files/multer.js` (+100 -57) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs Modify multer implementation to prevent DOS errors from multer file uploader due to sending a mutli-part form data that is empty or with no content length --- <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:34:01 -05:00
yindo closed this issue 2026-02-22 18:34:01 -05:00
yindo changed title from [PR #1004] Handle no-mutli-part form data error to [PR #1004] [MERGED] Handle no-mutli-part form data error 2026-06-05 15:14:01 -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#3553