Open nibazshab opened 10 months ago
--cleanup work error php flarum fof:upload --map --cleanup can not cleanup the file correctly
--cleanup
php flarum fof:upload --map --cleanup
Steps to Reproduce
SELECT * FROM flarum_fof_upload_files;
11 rows in set (0.000 sec)
SELECT * FROM flarum_fof_upload_file_posts;
9 rows in set (0.000 sec)
0 unused uploaded files cleaned up
Expected Behavior 2 file be deleted.
Environment
Flarum core: 1.8.3 PHP version: 8.0.30 MySQL version: 11.1.2-MariaDB-1:11.1.2+maria~ubu2204 Loaded extensions: Core, date, libxml, pcre, zlib, filter, hash, json, readline, Reflection, SPL, session, ctype, curl, dom, fileinfo, gd, gmp, iconv, intl, mbstring, openssl, PDO, standard, tokenizer, xmlwriter, zip, exif, mysqlnd, Phar, pdo_mysql, apcu, Zend OPcache +--------------------------------+---------+--------+ | Flarum Extensions | | | +--------------------------------+---------+--------+ | ID | Version | Commit | +--------------------------------+---------+--------+ | fof-upload | 1.4.6 | | | fof-links | 1.2.1 | | | flarum-tags | v1.8.0 | | | flarum-sticky | v1.8.0 | | | flarum-markdown | v1.8.0 | | | flarum-lang-chinese-simplified | v1.3.0 | | | flarum-emoji | v1.8.0 | | | flarum-bbcode | v1.8.0 | | +--------------------------------+---------+--------+ Base URL: https://bbs.lblb.eu.org Installation path: /flarum/app Queue driver: sync Session driver: file Mail driver: smtp Debug mode: off
Bug Report
--cleanup
work errorphp flarum fof:upload --map --cleanup
can not cleanup the file correctlySteps to Reproduce
SELECT * FROM flarum_fof_upload_files;
, I got11 rows in set (0.000 sec)
SELECT * FROM flarum_fof_upload_file_posts;
, I got9 rows in set (0.000 sec)
php flarum fof:upload --map --cleanup
but0 unused uploaded files cleaned up
Expected Behavior 2 file be deleted.
Environment