#109268Include the storage name in the “Remove Temporary Assets” process
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
-
Garvin Hicking commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2026-03-17T06:47:34+00:00" > 03/17/26, 06:47 </span> -
Georg Ringer changed assigned to Maike Kiebele <span data-processor="relativetime" data-value="2026-09-17T20:59:24+00:00" > 09/17/26, 20:59 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 96029 status
Needs FeedbackUnder Review <span data-processor="relativetime" data-value="2026-09-24T07:38:40+00:00" > 09/24/26, 07:38 </span> -
Gerrit Code Review pushed patch set 2 for main to change 96029 <span data-processor="relativetime" data-value="2026-11-09T11:25:48+00:00" > 11/09/26, 11:25 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 96029 <span data-processor="relativetime" data-value="2026-11-19T13:52:21+00:00" > 11/19/26, 13:52 </span>
Sounds good, could you submit that to gerrit maybe? Thanks!