mirror of
https://github.com/openvk/openvk
synced 2025-07-28 02:02:02 +03:00
## Summary - Implements automatic cleanup mechanism for pending photo uploads older than 24 hours - Enhances error response to include actionable information about pending uploads - Adds CLI command for manual cleanup with dry-run support ## Changes Made - **CLI/CleanupPendingUploadsCommand.php**: New command to auto-delete stale `.oct` files - **Web/Presenters/VKAPIPresenter.php**: Enhanced error response with pending upload details - **openvkctl**: Added cleanup command to CLI bootstrap - **CLI/README.md**: Documentation with usage examples and cron setup ## Problem Solved When users encounter "There are 3 pending already" error, they now receive: 1. **Structured JSON response** with upload details (ID, filename, size, age, timestamp) 2. **Automatic cleanup** removes uploads older than 24 hours 3. **Manual cleanup** available via CLI command with configurable age threshold ## Usage ```bash # Auto-cleanup (daily cron recommended) php openvkctl cleanup-pending-uploads # Custom age threshold php openvkctl cleanup-pending-uploads --max-age=1 # Preview what would be deleted php openvkctl cleanup-pending-uploads --dry-run ``` Fixes #1275 |
||
---|---|---|
.. | ||
templates | ||
AboutPresenter.php | ||
AdminPresenter.php | ||
AppsPresenter.php | ||
AudioPresenter.php | ||
AuthPresenter.php | ||
AwayPresenter.php | ||
BannedLinkPresenter.php | ||
BlobPresenter.php | ||
CommentPresenter.php | ||
ContentSearchPresenter.php | ||
DocumentsPresenter.php | ||
GiftsPresenter.php | ||
GroupPresenter.php | ||
HelloPresenter.php | ||
InternalAPIPresenter.php | ||
MaintenancePresenter.php | ||
MessengerPresenter.php | ||
NoSpamPresenter.php | ||
NotesPresenter.php | ||
NotificationPresenter.php | ||
OpenVKPresenter.php | ||
PhotosPresenter.php | ||
PollPresenter.php | ||
ReportPresenter.php | ||
SearchPresenter.php | ||
SupportPresenter.php | ||
ThemepacksPresenter.php | ||
TopicsPresenter.php | ||
UnknownTextRouteStrategyPresenter.php | ||
UserPresenter.php | ||
VideosPresenter.php | ||
VKAPIPresenter.php | ||
WallPresenter.php |