Issue Feature Under Review

#109268Include the storage name in the “Remove Temporary Assets” process

Sven Wappler 03/17/26, 00:39 updated 11/19/26, 13:52

Description

It would be clearer if the name were included, as otherwise the path to the processed folder might be mistakenly interpreted as incorrect, or—if there are multiple storage instances—it would be impossible to tell which one is intended.
Example: With S3 storage, the path is simply /_processed, and it is not immediately obvious that this is a different storage location than the default one.
Here is how the improvement could look:
Bildschirmfoto_20260317_013315.png

To do this, include the name in Typo3tempFileService.php:


protected function getStatsFromStorage(ResourceStorage $storage): array
    {
        $storageConfiguration = $storage->getConfiguration();
        $storageBasePath = rtrim($storageConfiguration['basePath'] ?? '', '/');
        $processedPath = '/' . $storageBasePath . $storage->getProcessingFolder()->getIdentifier();
        $numberOfFiles = $this->processedFileRepository->countByStorage($storage);
        $name = null;
        if ($storage->getDriverType() !== 'Local') {
            $name = $storage->getName();
        }

        return [
            'directory' => $processedPath,
            'numberOfFiles' => $numberOfFiles,
            'storageUid' => $storage->getUid(),
            'name' => $name,
        ];
    }

And, of course, adjust clear-typo3temp-files.js and ClearTypo3tempFiles.html.

Reviews 1

Files 1

History 25

  1. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2026-03-17T06:47:34+00:00" > 03/17/26, 06:47 </span>

    Sounds good, could you submit that to gerrit maybe? Thanks!

  2. Gerrit Code Review pushed patch set 1 for main to change 96029 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2026-09-24T07:38:40+00:00" > 09/24/26, 07:38 </span>