MaxServ / t3ext-fal_s3

S3 driver for FAL
GNU General Public License v2.0
13 stars 10 forks source link

[BUGFIX] Add Extractor for extracting metadata used by Indexer #60

Closed djcprinse closed 2 years ago

djcprinse commented 2 years ago

Add Extractor for extracting required metadata inside Indexer to update the correct width and height metadata on index update.

Snce TYPO3 v10, the core changed it's behaviour inside the Indexer::updateIndexEntry method by adding an ExtractorService for automatically extracting (required) metadata for files. Because of this update, the metadata for width and heigth were not updated correctly when, for example, and editor would replace files from within the filelist module.

By adding this Extractor, the metadata is now correctly updated again when the Indexer::updateIndexEntry method is being executed.

You can test this in a TYPO3 v10 installation with the Fal S3 driver installalled. Without this patch, uploading and updating an image (with changed sizes) would not correctly update the metadata. It would leave the width and height set to the dimensions of the initially uploaded files. When adding this patch, the width and height should be updated correctly again.