Description of the problem
The file usage function is buggy. When you're using a textarea field in an entry to contain text and images, EE only counts the first image when you save or resave the entry. It does pick it up if you reindex the whole site.
How To Reproduce
- Upload several images, or simply add the image code for several images, to a text area field.
<img src="{file:15149:url}" />
<img src="{file:15150:url}" />
<img src="{file:15151:url}" />
- Save the entry.
- Look to see if the image count has incremented for all three images. It hasn't.
Error Messages
No error messages.
Screenshots / Videos / Template Code
BEFORE: 0, 0, 0

ADDING THREE IMAGES TO A TEXT AREA

AFTER: 1, 0, 0 -- ONLY ONE IS INCREMENTED

Environment Details:
- Version: 7.5.7
- PHP Version 8.3.6
- MySQL Version ?
- OS: Linux
- Web Server: Apache
Possible Solution
No idea.
Additional context
I consider this a fairly serious bug, because it does make people think they can delete a file that has no usage, when that file may be in active use.
Description of the problem
The file usage function is buggy. When you're using a textarea field in an entry to contain text and images, EE only counts the first image when you save or resave the entry. It does pick it up if you reindex the whole site.
How To Reproduce
Error Messages
No error messages.
Screenshots / Videos / Template Code
BEFORE: 0, 0, 0

ADDING THREE IMAGES TO A TEXT AREA

AFTER: 1, 0, 0 -- ONLY ONE IS INCREMENTED

Environment Details:
Possible Solution
No idea.
Additional context
I consider this a fairly serious bug, because it does make people think they can delete a file that has no usage, when that file may be in active use.