From 83334486e1c198b3972ae520b10cbb63b86abff3 Mon Sep 17 00:00:00 2001 From: Amin Date: Mon, 10 Aug 2020 15:27:11 +0430 Subject: [PATCH] upload to google cloud fixes --- src/Clouds/GoogleCloudStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Clouds/GoogleCloudStorage.php b/src/Clouds/GoogleCloudStorage.php index 1f31239..70ea552 100644 --- a/src/Clouds/GoogleCloudStorage.php +++ b/src/Clouds/GoogleCloudStorage.php @@ -52,7 +52,7 @@ public function uploadDirectory(string $dir, array $options): void $options = array_merge($options, ['name' => $name]); if (is_file($path)) { - $bucket->upload($path, $options); + $bucket->upload(fopen($path, 'r'), $options); } } } catch (\Exception $e) {