Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ResumableUploader.php error #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix ResumableUploader.php error
for the error ResumableUploader.php line 179: Upload failed. Please use this URI to resume your upload
Antonimo authored Oct 3, 2019
commit edbd2cac67446fe5a0242397f0e11bf0b6e0a802
7 changes: 7 additions & 0 deletions src/GoogleStorageAdapter.php
Original file line number Diff line number Diff line change
@@ -152,6 +152,13 @@ protected function getOptionsFromConfig(Config $config)
$options['metadata'] = $metadata;
}

if ($chunkSize = $config->get('chunkSize')) {
$options['chunkSize'] = $chunkSize;
}
if ($uploadProgressCallback = $config->get('uploadProgressCallback')) {
$options['uploadProgressCallback'] = $uploadProgressCallback;
}

return $options;
}