Problem
Uploaded images are stored at /app/client/public/images/ (now mounted to /mnt/ssd1/workspace/henson/uploads). Files are deleted when explicitly removed via the UI, but there is no:
- TTL / expiration on old files
- Size limit on the uploads directory
- Scheduled cleanup of orphaned files (files on disk with no matching record in MongoDB)
Over time this will fill the disk.
Suggested Fix
Add a cron job or scheduled task that:
- Queries MongoDB
files collection for all referenced file paths
- Scans the uploads directory
- Deletes files on disk with no matching DB record
- Optionally: deletes files older than N days
Priority
Low — single-user deployment, not urgent.
Migrated from jmorrissette-RMDC/LibreChat
Problem
Uploaded images are stored at
/app/client/public/images/(now mounted to/mnt/ssd1/workspace/henson/uploads). Files are deleted when explicitly removed via the UI, but there is no:Over time this will fill the disk.
Suggested Fix
Add a cron job or scheduled task that:
filescollection for all referenced file pathsPriority
Low — single-user deployment, not urgent.
Migrated from jmorrissette-RMDC/LibreChat