Skip to content

Commit 8333448

Browse files
upload to google cloud fixes
1 parent 26148ff commit 8333448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Clouds/GoogleCloudStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function uploadDirectory(string $dir, array $options): void
5252
$options = array_merge($options, ['name' => $name]);
5353

5454
if (is_file($path)) {
55-
$bucket->upload($path, $options);
55+
$bucket->upload(fopen($path, 'r'), $options);
5656
}
5757
}
5858
} catch (\Exception $e) {

0 commit comments

Comments
 (0)