Bug #46482
closedcached image sizes (sys_file) are not updated when replacing a file
0%
Description
The cached image sizes in the sys_file table are not updated when a file is replaced with ResourceStorage->replaceFile(...).
Images in frontend don't have the right size when you use the f:image tag. The img-tag has the old image size.
For example (backend)
...
$storage->replaceFile(
$fileObject,
$_FILES['tx_iffilesearch_file_iffilesearchfilsearch']['tmp_name']['upload']
);
...
Updated by Ingo Schmitt almost 11 years ago
- Category set to File Abstraction Layer (FAL)
- Is Regression set to No
Updated by Frans Saris almost 10 years ago
- Sprint Focus set to On Location Sprint
Updated by Anja Leichsenring over 9 years ago
- Sprint Focus changed from On Location Sprint to Remote Sprint
Updated by Riccardo De Contardi over 8 years ago
- Status changed from New to Needs Feedback
I have performed the following test with the latest master 8.2-dev
1) I put inside a Partial the code
<f:image src=“fileadmin/Image.png" />
2) I uploaded a file Image.png inside /fileadmin/ with the Filelist module
3) on Filelist module, too, I uploaded a different file with the same name
RESULT: the file changes, and its dimensions too
4 ) I also tried to do the same thing, using “replace” and “keep the current filename”
RESULT: the file changes, and its dimensions, too
Is it sufficient to consider this closed, or do you think that a different test should be performed? Thank you
Updated by Alexander Opitz about 8 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.