Project

General

Profile

Actions

Bug #46482

closed

cached image sizes (sys_file) are not updated when replacing a file

Added by Marcus no-lastname-given about 11 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2013-03-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Remote Sprint

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']
);
...


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #46446: sys_file doesn't get updatedClosed2013-03-20

Actions
Related to TYPO3 Core - Bug #45922: image replacement, width and height are kept even i change my imageClosed2013-02-28

Actions
Actions #1

Updated by Ingo Schmitt over 10 years ago

  • Category set to File Abstraction Layer (FAL)
  • Is Regression set to No
Actions #2

Updated by Frans Saris over 9 years ago

  • Sprint Focus set to On Location Sprint
Actions #3

Updated by Anja Leichsenring over 8 years ago

  • Sprint Focus changed from On Location Sprint to Remote Sprint
Actions #4

Updated by Riccardo De Contardi almost 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

Actions #5

Updated by Alexander Opitz over 7 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.

Actions

Also available in: Atom PDF