From fdff24f44d29786ad364002f7491119938505c34 Mon Sep 17 00:00:00 2001 From: Lorenzo Ruozzi Date: Tue, 23 Apr 2024 12:28:32 +0200 Subject: [PATCH] Try to fix permissions on download files --- src/ValueHandler/FileAttributeValueHandler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ValueHandler/FileAttributeValueHandler.php b/src/ValueHandler/FileAttributeValueHandler.php index 4bc51e02..53b65c85 100644 --- a/src/ValueHandler/FileAttributeValueHandler.php +++ b/src/ValueHandler/FileAttributeValueHandler.php @@ -102,6 +102,7 @@ private function moveFileToAttachmentFolder(string $relativeFilePath, SplFileInf $this->filesystem->mkdir($destinationFolder); } $this->filesystem->rename($downloadedFile->getPathname(), $destinationFilepath, true); + $this->filesystem->chmod($destinationFilepath, 0755); } private function getValue(array $value, ProductInterface $product): ?string