FriendsOfFlarum / upload

The file upload extension with insane intelligence for your Flarum forum.
https://discuss.flarum.org/d/4154
MIT License
175 stars 94 forks source link

Cleanup for imgur uploads does not work #352

Open tipa opened 8 months ago

tipa commented 8 months ago

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: https://github.com/FriendsOfFlarum/upload/issues/290

Environment