From bff9b0cb16fa42846c6f151b4335090dfdf1ac65 Mon Sep 17 00:00:00 2001 From: Pavel Sheiman Date: Tue, 14 Mar 2017 17:33:40 +0200 Subject: [PATCH 1/2] fix write directory permission --- src/Folklore/Image/ImageServe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Folklore/Image/ImageServe.php b/src/Folklore/Image/ImageServe.php index 127338e..ea88f8b 100644 --- a/src/Folklore/Image/ImageServe.php +++ b/src/Folklore/Image/ImageServe.php @@ -51,7 +51,7 @@ public function response($path) $destinationFolder = public_path(trim($writePath, '/') . '/' . ltrim(dirname($imagePath), '/')); if (isset($writePath)) { - \File::makeDirectory($destinationFolder, 0770, true, true); + \File::makeDirectory($destinationFolder, 0755, true, true); } // Make sure destination is writeable From 641a237ae314278650c9d7dfc2806f63dc29d308 Mon Sep 17 00:00:00 2001 From: Pavel Sheiman Date: Tue, 14 Mar 2017 17:37:52 +0200 Subject: [PATCH 2/2] fix write directory permission --- src/Folklore/Image/ImageServe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Folklore/Image/ImageServe.php b/src/Folklore/Image/ImageServe.php index ea88f8b..b5f983a 100644 --- a/src/Folklore/Image/ImageServe.php +++ b/src/Folklore/Image/ImageServe.php @@ -51,7 +51,7 @@ public function response($path) $destinationFolder = public_path(trim($writePath, '/') . '/' . ltrim(dirname($imagePath), '/')); if (isset($writePath)) { - \File::makeDirectory($destinationFolder, 0755, true, true); + \File::makeDirectory($destinationFolder, 0775, true, true); } // Make sure destination is writeable