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 can not cleanup the file correctly #360

Open
nibazshab opened this issue Nov 13, 2023 · 0 comments
Open

--cleanup can not cleanup the file correctly #360

nibazshab opened this issue Nov 13, 2023 · 0 comments
Labels

Comments

@nibazshab
Copy link

nibazshab commented Nov 13, 2023

Bug Report

--cleanup work error
php flarum fof:upload --map --cleanup can not cleanup the file correctly

Steps to Reproduce

  1. If I open a new post, and upload 2 file. then I got the file-link,and then close the post.
  2. Now I have two file not in any post.
  3. SELECT * FROM flarum_fof_upload_files;, I got 11 rows in set (0.000 sec)
  4. SELECT * FROM flarum_fof_upload_file_posts;, I got 9 rows in set (0.000 sec)
  5. use php flarum fof:upload --map --cleanup but 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant