Skip to content

Commit

Permalink
Try to fix permissions on download files
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Apr 23, 2024
1 parent 2df2a42 commit ec26f11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ValueHandler/FileAttributeValueHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec26f11

Please sign in to comment.