Repository navigation
Use Guzzle stream to download files from GDrive - #21732
Merged
Merged
Conversation
The API library does not support streaming and always reads the full file into memory. This workaround copies the signed headers to a Guzzle request and returns the response as stream.
|
By analyzing the blame information on this pull request, we identified @Xenopathic, @MTGap and @icewind1991 to be potential reviewers |
Contributor
|
nice 👍 |
Contributor
Author
Contributor
|
Looks good 👍 |
Contributor
Author
|
@karlitschek backport to 8.2.2 at least ? |
Contributor
|
backport is fine if this is fully tested. 👍 |
Contributor
Author
|
@davitol mind doing another test for this PR ? The only test needed is downloading, see original post. Maybe spice it up a bit with encryption and shares 😄 |
DeepDiver1975
added a commit
that referenced
this pull request
Jan 18, 2016
Use Guzzle stream to download files from GDrive
Contributor
Author
|
stable8.2: #21825 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The API library does not support streaming and always reads the full
file into memory.
This workaround copies the signed headers to a Guzzle request and
returns the response as stream.
Inspired by @icewind1991's approach for DAV: #18653
Before: (the download takes a while to start due to temp storage)
After:
Fixes the download part of #21357
Please review @icewind1991 @Xenopathic