LibreChat/api/server/routes/files
Danny Avila 39f4e725e5
refactor: Implement file access filtering based on agent permissions
- Introduced `filterFilesByAgentAccess` function to filter files based on user access through agents.
- Updated `getFiles` and `primeFiles` functions to utilize the new filtering logic.
- Moved `hasAccessToFilesViaAgent` function from the File model to permission services, adjusting imports accordingly
- Enhanced tests to ensure proper access control and filtering behavior for files associated with agents.
2025-07-19 18:42:54 -04:00
..
speech 🛡️ fix: Enhance File Upload Security & Error Handling (#4705) 2024-11-12 16:41:04 -05:00
avatar.js 🛡️ fix: Enhance File Upload Security & Error Handling (#4705) 2024-11-12 16:41:04 -05:00
files.agents.test.js refactor: Enhance test setup and cleanup for file access control 2025-07-19 18:42:53 -04:00
files.js refactor: Implement file access filtering based on agent permissions 2025-07-19 18:42:54 -04:00
files.test.js refactor: Enhance test setup and cleanup for file access control 2025-07-19 18:42:53 -04:00
images.js 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
index.js 🛡️ fix: Enhance File Upload Security & Error Handling (#4705) 2024-11-12 16:41:04 -05:00
multer.js 🧠 feat: User Memories for Conversational Context (#7760) 2025-06-07 18:52:22 -04:00
multer.spec.js 💻 ci: Make Unit Tests Pass on MacOS (#8165) 2025-07-01 09:20:33 -04:00