Issue Bug Closed

#104552Error on form setup with source from fileadmin: Resource paths must start with "EXT:"

Paul Klimek 08/06/24, 09:09 updated 04/28/25, 19:38

Description

If I setup “fileadmin” as source in extension configuration backend, I get a error by sending mails on frontend.
It shoudbe possible to use also images from fileadmin source as described on the examples in backend configuration.

(1/1) #1630089406 TYPO3\CMS\Core\Resource\Exception\InvalidFileException

Resource paths must start with "EXT:"
in /var/customers/webs/HZFMuelheim/typo3_src-12.4.16/typo3/sysext/core/Classes/Utility/PathUtility.php line 101

     */
    public static function getPublicResourceWebPath(string $resourcePath, bool $prefixWithSitePath = true): string
    {
        if (!self::isExtensionPath($resourcePath)) {
            throw new InvalidFileException('Resource paths must start with "EXT:"', 1630089406);
        }
        $absoluteFilePath = GeneralUtility::getFileAbsFileName($resourcePath);
        if (!str_contains($resourcePath, 'Resources/Public')) {
            if (!str_starts_with($absoluteFilePath, Environment::

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.