Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class ResumableUploader.
The given callable function/method will be called after each successfully uploaded chunk. The callable function/method will receive the number of uploaded bytes after each uploaded chunk as a parameter to this callable. It's useful if you want to create a progress bar when using resumable upload type together with $chunkSize parameter. If $chunkSize is not set the callable function/method will be called only once after the successful file upload.
↳ chunkSize
int
Size of the chunks to send incrementally during a resumable upload. Must be in multiples of 262144 bytes.
↳ restOptions
array
HTTP client specific configuration options.
↳ retries
int
Number of retries for a failed request.Defaults to3.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class ResumableUploader (1.64.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.64.2 (latest)](/php/docs/reference/cloud-core/latest/Upload.ResumableUploader)\n- [1.64.1](/php/docs/reference/cloud-core/1.64.1/Upload.ResumableUploader)\n- [1.63.0](/php/docs/reference/cloud-core/1.63.0/Upload.ResumableUploader)\n- [1.62.3](/php/docs/reference/cloud-core/1.62.3/Upload.ResumableUploader)\n- [1.61.0](/php/docs/reference/cloud-core/1.61.0/Upload.ResumableUploader)\n- [1.60.1](/php/docs/reference/cloud-core/1.60.1/Upload.ResumableUploader)\n- [1.59.1](/php/docs/reference/cloud-core/1.59.1/Upload.ResumableUploader)\n- [1.58.2](/php/docs/reference/cloud-core/1.58.2/Upload.ResumableUploader)\n- [1.53.0](/php/docs/reference/cloud-core/1.53.0/Upload.ResumableUploader)\n- [1.52.11](/php/docs/reference/cloud-core/1.52.11/Upload.ResumableUploader)\n- [1.51.2](/php/docs/reference/cloud-core/1.51.2/Upload.ResumableUploader)\n- [1.50.0](/php/docs/reference/cloud-core/1.50.0/Upload.ResumableUploader)\n- [1.49.3](/php/docs/reference/cloud-core/1.49.3/Upload.ResumableUploader)\n- [1.48.1](/php/docs/reference/cloud-core/1.48.1/Upload.ResumableUploader) \nReference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class ResumableUploader.\n\nResumable upload implementation.\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Core \\\\ Upload\n\nMethods\n-------\n\n### __construct\n\n### getResumeUri\n\nGets the resume URI.\n\n### resume\n\nResumes a download using the provided URI.\n\n### upload\n\nTriggers the upload process.\n\nErrors are of form [`google.rpc.Status`](https://cloud.google.com/apis/design/errors#error_model),\nand may be obtained via [Google\\\\Cloud\\\\Core\\\\Exception\\\\ServiceException::getMetadata()](/php/docs/reference/cloud-core/latest/Exception.ServiceException#_Google_Cloud_Core_Exception_ServiceException__getMetadata__).\n\n### uploadAsync\n\nCurrently only the MultiPartUploader supports async.\n\nAny calls to this will throw a generic Google Exception."]]