Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
9b44a0a
[TASK] Remove unneede TSFE namespace import
cweiske Dec 22, 2025
b0a432a
V13 compatibility: Driver method signatures
moimoimoimoi Dec 22, 2025
e106ea1
V13 compatibility: Prevent accidental cache configuration override
moimoimoimoi Dec 22, 2025
5e0f7f3
V13 compatibility: Use FileType constants
moimoimoimoi Dec 22, 2025
8bfd587
V13 compatibility: Use Capabilities class
moimoimoimoi Dec 22, 2025
1f7a5d7
V13 compatibility: Fix getFileForLocalProcessing() with non-existent …
moimoimoimoi Dec 22, 2025
a44ba7c
V13 compatibility: Replace FlashMessage with ContextualFeedbackSeverity
moimoimoimoi Dec 22, 2025
78fa2d2
V13 compatibility: Pass array by reference
moimoimoimoi Dec 22, 2025
be7dcb7
V13 compatibility: Mark extension compatible with TYPO3 v13
moimoimoimoi Dec 22, 2025
fed96dc
Fixes for TYPO3 v13: Import FileType namespace
weakbit Dec 22, 2025
811c93e
Fixes for TYPO3 v13: Reformat flexform XML (spaces instead of tabs)
weakbit Dec 22, 2025
dce08b2
Fixes for TYPO3 v13: Remove <TCEforms> from flexform
weakbit Dec 22, 2025
5d0d08f
Fixes for TYPO3 v13: Remove "langDisable" from flexform
cweiske Dec 22, 2025
cfc920f
Fixes for TYPO3 v13: Reformat flexform XML labels
weakbit Dec 22, 2025
9f69bde
Fixes for TYPO3 v13: Add rector + phpstan configuration
weakbit Dec 22, 2025
84ee686
Fixes for TYPO3 v13: Support TYPO3v13 only
weakbit Dec 22, 2025
022a220
Fixes for TYPO3 v13: Set extension version to 1.13.500 in ext_emconf
weakbit Dec 22, 2025
da93504
Fix tests for TYPO3 v13
weakbit Aug 5, 2025
209ed43
[TASK] Catch 404 exceptions only
cweiske Dec 22, 2025
855465f
[BUGFIX] Fix typo in file content hash config label
cweiske Dec 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 98 additions & 78 deletions Classes/Driver/AmazonS3Driver.php

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions Classes/Index/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;
use TYPO3\CMS\Core\Resource\File;
use TYPO3\CMS\Core\Resource\FileInterface;
use TYPO3\CMS\Core\Resource\FileType;
use TYPO3\CMS\Core\Resource\Index\ExtractorInterface;
use TYPO3\CMS\Core\Type\File\ImageInfo;
use TYPO3\CMS\Core\Utility\GeneralUtility;
Expand Down Expand Up @@ -51,7 +52,7 @@ public function __construct()
*/
public function getFileTypeRestrictions()
{
return [File::FILETYPE_IMAGE];
return [FileType::IMAGE];
}

/**
Expand Down Expand Up @@ -104,7 +105,7 @@ public function getExecutionPriority()
*/
public function canProcess(File $file)
{
return $file->getType() == File::FILETYPE_IMAGE && $file->getStorage()->getDriverType() === AmazonS3Driver::DRIVER_TYPE;
return $file->isImage() && $file->getStorage()->getDriverType() === AmazonS3Driver::DRIVER_TYPE;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion Classes/Service/MetaDataUpdateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use AUS\AusDriverAmazonS3\Index\Extractor;
use TYPO3\CMS\Core\Resource\AbstractFile;
use TYPO3\CMS\Core\Resource\Exception\InvalidUidException;
use TYPO3\CMS\Core\Resource\FileType;
use TYPO3\CMS\Core\Resource\Index\MetaDataRepository;
use TYPO3\CMS\Core\Resource\ResourceFactory;
use TYPO3\CMS\Core\Resource\ResourceStorage;
Expand All @@ -35,7 +36,7 @@ class MetaDataUpdateService implements SingletonInterface
*/
public function updateMetadata(array $fileProperties): void
{
if ($fileProperties['type'] !== AbstractFile::FILETYPE_IMAGE) {
if ($fileProperties['type'] !== FileType::IMAGE->value) {
return;
}

Expand Down
Loading