[PR #4342] [MERGED] Added metadata parameter to document/upload, document/upload/{folderName}, and document/upload-link #4592

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4342
Author: @jstawski
Created: 8/30/2025
Status: Merged
Merged: 9/17/2025
Merged by: @timothycarambat

Base: masterHead: master


📝 Commits (10+)

  • 27f652b Added the ability to pass in metadata to the /document/upload/{folderName} endpoint
  • f0b2bb2 Added the ability to pass in metadata to the /document/upload-link endpoint
  • 2e6101f feat: added metadata to document/upload api endpoint
  • 65f412e simplify optional metadata in document dev api endpoints
  • 34edeef lint
  • 4220b75 Merge branch 'master' into jstawski-master
  • 2c40956 patch handling of metadata in dev api
  • 171b940 Merge branch 'master' into master
  • 5b9c8ad Linting, small comments
  • 53f5a4b Merge branch 'master' into master

📊 Changes

16 files changed (+229 additions, -103 deletions)

View changed files

📝 collector/index.js (+4 -4)
📝 collector/processLink/convert/generic.js (+6 -4)
📝 collector/processLink/index.js (+3 -1)
📝 collector/processSingleFile/convert/asAudio.js (+11 -6)
📝 collector/processSingleFile/convert/asDocx.js (+11 -6)
📝 collector/processSingleFile/convert/asEPub.js (+11 -6)
📝 collector/processSingleFile/convert/asImage.js (+11 -6)
📝 collector/processSingleFile/convert/asMbox.js (+16 -8)
📝 collector/processSingleFile/convert/asOfficeMime.js (+6 -5)
📝 collector/processSingleFile/convert/asPDF/index.js (+17 -6)
📝 collector/processSingleFile/convert/asTxt.js (+11 -6)
📝 collector/processSingleFile/convert/asXlsx.js (+12 -6)
📝 collector/processSingleFile/index.js (+9 -1)
📝 server/endpoints/api/document/index.js (+64 -31)
📝 server/swagger/openapi.json (+29 -3)
📝 server/utils/collectorApi/index.js (+8 -4)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #1886

What is in this change?

Added the optional metadata parameter to document/upload, document/upload/{folderName}, and document/upload-link the same way it is used in document/raw-text.

Additional Information

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/4342 **Author:** [@jstawski](https://github.com/jstawski) **Created:** 8/30/2025 **Status:** ✅ Merged **Merged:** 9/17/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`27f652b`](https://github.com/Mintplex-Labs/anything-llm/commit/27f652b2aa1942121a7d63f2440816d8175ad6a6) Added the ability to pass in metadata to the /document/upload/{folderName} endpoint - [`f0b2bb2`](https://github.com/Mintplex-Labs/anything-llm/commit/f0b2bb22af147b544ee1cde9e20d8b2e85d0fb0a) Added the ability to pass in metadata to the /document/upload-link endpoint - [`2e6101f`](https://github.com/Mintplex-Labs/anything-llm/commit/2e6101f7a1521298d5912e67eb1ba936a1226ed7) feat: added metadata to document/upload api endpoint - [`65f412e`](https://github.com/Mintplex-Labs/anything-llm/commit/65f412e697678ce8a52d1b531e6240708be4ea21) simplify optional metadata in document dev api endpoints - [`34edeef`](https://github.com/Mintplex-Labs/anything-llm/commit/34edeefcad9efaf0f2fc8c59589ebeecfdea5b31) lint - [`4220b75`](https://github.com/Mintplex-Labs/anything-llm/commit/4220b7509a259955199edb67564653fb1868f05f) Merge branch 'master' into jstawski-master - [`2c40956`](https://github.com/Mintplex-Labs/anything-llm/commit/2c4095697621d7489a6cdc64a9a6fa7698958e3a) patch handling of metadata in dev api - [`171b940`](https://github.com/Mintplex-Labs/anything-llm/commit/171b940a3cf49f2c731c3b45a7c2b0b665f851f0) Merge branch 'master' into master - [`5b9c8ad`](https://github.com/Mintplex-Labs/anything-llm/commit/5b9c8ad3095f1b3304739976174abd0a2fea2212) Linting, small comments - [`53f5a4b`](https://github.com/Mintplex-Labs/anything-llm/commit/53f5a4b8fb14ae91e46576f3e6f018882c825388) Merge branch 'master' into master ### 📊 Changes **16 files changed** (+229 additions, -103 deletions) <details> <summary>View changed files</summary> 📝 `collector/index.js` (+4 -4) 📝 `collector/processLink/convert/generic.js` (+6 -4) 📝 `collector/processLink/index.js` (+3 -1) 📝 `collector/processSingleFile/convert/asAudio.js` (+11 -6) 📝 `collector/processSingleFile/convert/asDocx.js` (+11 -6) 📝 `collector/processSingleFile/convert/asEPub.js` (+11 -6) 📝 `collector/processSingleFile/convert/asImage.js` (+11 -6) 📝 `collector/processSingleFile/convert/asMbox.js` (+16 -8) 📝 `collector/processSingleFile/convert/asOfficeMime.js` (+6 -5) 📝 `collector/processSingleFile/convert/asPDF/index.js` (+17 -6) 📝 `collector/processSingleFile/convert/asTxt.js` (+11 -6) 📝 `collector/processSingleFile/convert/asXlsx.js` (+12 -6) 📝 `collector/processSingleFile/index.js` (+9 -1) 📝 `server/endpoints/api/document/index.js` (+64 -31) 📝 `server/swagger/openapi.json` (+29 -3) 📝 `server/utils/collectorApi/index.js` (+8 -4) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues resolves #1886 ### What is in this change? Added the optional `metadata` parameter to `document/upload`, `document/upload/{folderName}`, and `document/upload-link` the same way it is used in `document/raw-text`. ### Additional Information ### 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:36:08 -05:00
yindo closed this issue 2026-02-22 18:36:08 -05:00
yindo changed title from [PR #4342] Added metadata parameter to document/upload, document/upload/{folderName}, and document/upload-link to [PR #4342] [MERGED] Added metadata parameter to document/upload, document/upload/{folderName}, and document/upload-link 2026-06-05 15:19:21 -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#4592