- π΅π°Pakistan hmdnawaz
I have a file field in my content type, I attached a file to the node. I can see an entry in the
file_managed
andfile_usage
table for that file.Now I deleted the node, I see the file entry removed from the
file_usage
and the entry is still present in thefile_managed
table.But I don't see that file nor in the
orphaned files
and neither in theunmanged files
. - First commit to issue fork.
- Merge request !9find orphaned files that are no longer in file_usage table β (Open) created by albert78
- Open on Drupal.org βCore: 10.2.x + Environment: PHP 8.2 & MySQL 8last update
11 months ago Waiting for branch to pass - πΊπΈUnited States albert78
I just sent a marge request. As I mentioned there, it seems to fix issue, but it should be tested better, I just don't have time to do it myself.
- πΊπΈUnited States mortona2k Seattle
This patch fixed my orphaned file list, which was empty. Now it looks like the same list of files that have 0 usage.
The change is minimal, allowing files to pass the filter if they were not used in a node (I think.. not sure what "type" is here, or why it needs this check).
I have not tested beyond this yet.
- Status changed to Needs review
8 months ago 8:02pm 21 August 2024