/** * uploadPart * * @param string $key * @param string $uploadId * @param mixed $body * @param integer $partNumber * @param string $contentLength * * @return \Guzzle\Service\Resource\Model */ public function uploadPart($key, $uploadId, $body, $partNumber, $contentLength = null) { $params = ['Bucket' => $this->name, 'Key' => $key, 'UploadId' => $uploadId, 'Body' => $body, 'PartNumber' => $partNumber]; if (!is_null($contentLength)) { $params['contentLength'] = $contentLength; } return $this->client->uploadPart($params); }