Skip to content

feat: auto-cleanup old uploads#48

Open
Suji2007hub wants to merge 1 commit into
Pushkarini579:mainfrom
Suji2007hub:main
Open

feat: auto-cleanup old uploads#48
Suji2007hub wants to merge 1 commit into
Pushkarini579:mainfrom
Suji2007hub:main

Conversation

@Suji2007hub

Copy link
Copy Markdown

Added a background cleanup task in server/index.js to prevent disk exhaustion.
On server startup, and then every 15 minutes (configurable via UPLOAD_CLEANUP_INTERVAL_MS), the server scans server/uploads/.
Deletes uploaded files older than 24 hours based on their mtimeMs timestamp.
Includes safety checks (only deletes files, skips directories) and error handling to avoid crashing the server.

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@Suji2007hub is attempting to deploy a commit to the Pushkarini 's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant