public function uploadPart($bucket, $object, $uploadId, $options = null)
    {
        $this->precheckCommon($bucket, $object, $options);
        $this->precheckParam($options, self::OSS_FILE_UPLOAD, __FUNCTION__);
        $this->precheckParam($options, self::OSS_PART_NUM, __FUNCTION__);

        $options[self::OSS_METHOD] = self::OSS_HTTP_PUT;
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_OBJECT] = $object;
        $options[self::OSS_UPLOAD_ID] = $uploadId;

        if (isset($options[self::OSS_LENGTH])) {
            $options[self::OSS_CONTENT_LENGTH] = $options[self::OSS_LENGTH];
        }
        $response = $this->auth($options);
        $result = new UploadPartResult($response);
        return $result->getData();
    }
public function uploadPart($bucket, $object, $uploadId, $options = null)
    {
        $this->precheckCommon($bucket, $object, $options);
        $this->precheckParam($options, self::OSS_FILE_UPLOAD, __FUNCTION__);
        $this->precheckParam($options, self::OSS_PART_NUM, __FUNCTION__);

        $options[self::OSS_METHOD] = self::OSS_HTTP_PUT;
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_OBJECT] = $object;
        $options[self::OSS_UPLOAD_ID] = $uploadId;

        if (isset($options[self::OSS_LENGTH])) {
            $options[self::OSS_CONTENT_LENGTH] = $options[self::OSS_LENGTH];
        }
        $response = $this->auth($options);
        $result = new UploadPartResult($response);
        return $result->getData();
    }
public function uploadPart ( $ bucket , $ object , $ uploadId , $ options = null ) { $ this -> precheckCommon ( $ bucket , $ object , $ options ) ; $ this -> precheckParam ( $ options , self :: OSS_FILE_UPLOAD , __FUNCTION__ ) ; $ this -> precheckParam ( $ options , self :: OSS_PART_NUM , __FUNCTION__ ) ; $ options [ self :: OSS_METHOD ] = self :: OSS_HTTP_PUT ; $ options [ self :: OSS_BUCKET ] = $ bucket ; $ options [ self :: OSS_OBJECT ] = $ object ; $ options [ self :: OSS_UPLOAD_ID ] = $ uploadId ; if ( isset ( $ options [ self :: OSS_LENGTH ] ) ) { $ options [ self :: OSS_CONTENT_LENGTH ] = $ options [ self :: OSS_LENGTH ] ; } $ response = $ this -> auth ( $ options ) ; $ result = new UploadPartResult ( $ response ) ; return $ result -> getData ( ) ; }
Upload a part in a multiparts upload.

@param string $bucket bucket name
@param string $object object name
@param string $uploadId
@param array $options Key-Value array
@return string eTag
@throws OssException
Upload a part in a multiparts upload .