Skip to content

Commit

Permalink
upload to google cloud fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aminyazdanpanah committed Aug 10, 2020
1 parent 26148ff commit 8333448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Clouds/GoogleCloudStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8333448

Please sign in to comment.