Repository navigation
Chunk upload for GDrive - #23323
Chunk upload for GDrive#23323
Conversation
Instead of storing the WHOLE file in memory in a PHP variable, use the library's chunk upload support.
|
By analyzing the blame information on this pull request, we identified @Xenopathic, @MTGap and @icewind1991 to be potential reviewers |
|
Okay, weird stuff happening with the new calls: |
|
Okay, got it. The problem is when writing/updating a file to zero bytes. The API doesn't like empty chunks. This will need a separate code path to simply store the file. |
|
Changed the code to only use chunks when needed. Test result is like master: I'll do a manual retest:
|
|
The unit tests are the same that were expected to fail like in #22481 Please review @icewind1991 @LukasReschke @schiesbn @Xenopathic |
|
@karlitschek backport to 9.0.1 ? This solves memory issues when uploading because the old impl stored the whole file in memory. |
|
good catch. please backport |
|
stable9: #23361 |
|
@icewind1991 @nickvergessen @DeepDiver1975 please review. |
|
Code looks good 👍 |
|
Works fine and seems faster than before 👍 |
|
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. |
Instead of storing the WHOLE file in memory in a PHP variable, use the
library's chunk upload support.
Fixes #21357 (upload part)
@icewind1991 @LukasReschke @nickvergessen @schiesbn