mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
A deployment can point fileStrategies.image and fileStrategies.document at different places, and an export mixes images with audio, video, and PDFs. Resolving isImage: true once for the whole archive sent every non-image attachment to the image backend, so it landed somewhere the deployment never meant it to live and could be unavailable after a restart. Both backends are still resolved up front, so a misconfigured strategy fails the job at setup rather than surfacing as a per-asset error halfway through; only the choice between them is per asset. saveBuffer now reports which backend took the bytes so the file row records it. |
||
|---|---|---|
| .. | ||
| app | ||
| cache | ||
| config | ||
| db | ||
| models | ||
| server | ||
| strategies | ||
| test | ||
| utils | ||
| jest.config.js | ||
| jsconfig.json | ||
| package.json | ||
| typedefs.js | ||