#57975No preview images on driver with basePath = /
Description
Hello Core-Team,
I have created a new driver with basePath=/
In such a driver no preview images will be created
I found following in LocalDriver:
// as for the "virtual storage" for backwards-compatibility, this check always fails, as the file probably lies under PATH_site
// thus, it is not checked here
// @ todo is check in storage
if (GeneralUtility::isFirstPartOfStr($localFilePath, $this->absoluteBasePath) && $this->storageUid > 0) {
throw new \InvalidArgumentException('Cannot add a file that is already part of this storage.', 1314778269);
}
I don’t understand this part. Why?
Stefan
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.