Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup for imgur uploads does not work #352

Open
tipa opened this issue Oct 23, 2023 · 0 comments
Open

Cleanup for imgur uploads does not work #352

tipa opened this issue Oct 23, 2023 · 0 comments
Labels
bug keep Issues that should not be closed Stale

Comments

@tipa
Copy link

tipa commented Oct 23, 2023

Bug Report

The --map --cleanup command doesn't work for imgur uploads.
It is documented that unused files are detected and can be removed: https://github.com/FriendsOfFlarum/upload#mapfilescommand

Current Behavior
I am prompted if I want to delete a picture, but confirming it with yes does not deleted it.
If I run the command again, the same picture is offered for deletion again
image

Steps to Reproduce
php flarum fof:upload --map --cleanup --cleanup-before="a month ago"

Expected Behavior
Unused Imgur uploads are detected and can be deleted
Related issue: #290

Environment

  • Flarum version: 1.8.3
  • Extension version: 1.4.1
  • Webserver: apache
  • Hosting environment: shared
  • PHP version: 8.2.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug keep Issues that should not be closed Stale
Projects
None yet
Development

No branches or pull requests

2 participants