public function completeMultipartUpload($bucket, $object, $uploadId, $listParts, $options = NULL)
    {
        $this->precheckCommon($bucket, $object, $options);
        $options[self::OSS_METHOD] = self::OSS_HTTP_POST;
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_OBJECT] = $object;
        $options[self::OSS_UPLOAD_ID] = $uploadId;
        $options[self::OSS_CONTENT_TYPE] = 'application/xml';
        if (!is_array($listParts)) {
            throw new OssException("listParts must be array type");
        }
        $options[self::OSS_CONTENT] = OssUtil::createCompleteMultipartUploadXmlBody($listParts);
        $response = $this->auth($options);
        if (isset($options[self::OSS_CALLBACK]) && !empty($options[self::OSS_CALLBACK])) {
            $result = new CallbackResult($response);
        } else {
            $result = new PutSetDeleteResult($response);
        }
        return $result->getData();
    }
public function completeMultipartUpload($bucket, $object, $uploadId, $listParts, $options = NULL)
    {
        $this->precheckCommon($bucket, $object, $options);
        $options[self::OSS_METHOD] = self::OSS_HTTP_POST;
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_OBJECT] = $object;
        $options[self::OSS_UPLOAD_ID] = $uploadId;
        $options[self::OSS_CONTENT_TYPE] = 'application/xml';
        if (!is_array($listParts)) {
            throw new OssException("listParts must be array type");
        }
        $options[self::OSS_CONTENT] = OssUtil::createCompleteMultipartUploadXmlBody($listParts);
        $response = $this->auth($options);
        if (isset($options[self::OSS_CALLBACK]) && !empty($options[self::OSS_CALLBACK])) {
            $result = new CallbackResult($response);
        } else {
            $result = new PutSetDeleteResult($response);
        }
        return $result->getData();
    }
public function completeMultipartUpload ( $ bucket , $ object , $ uploadId , $ listParts , $ options = NULL ) { $ this -> precheckCommon ( $ bucket , $ object , $ options ) ; $ options [ self :: OSS_METHOD ] = self :: OSS_HTTP_POST ; $ options [ self :: OSS_BUCKET ] = $ bucket ; $ options [ self :: OSS_OBJECT ] = $ object ; $ options [ self :: OSS_UPLOAD_ID ] = $ uploadId ; $ options [ self :: OSS_CONTENT_TYPE ] = 'application/xml' ; if ( ! is_array ( $ listParts ) ) { throw new OssException ( "listParts must be array type" ) ; } $ options [ self :: OSS_CONTENT ] = OssUtil :: createCompleteMultipartUploadXmlBody ( $ listParts ) ; $ response = $ this -> auth ( $ options ) ; if ( isset ( $ options [ self :: OSS_CALLBACK ] ) && ! empty ( $ options [ self :: OSS_CALLBACK ] ) ) { $ result = new CallbackResult ( $ response ) ; } else { $ result = new PutSetDeleteResult ( $ response ) ; } return $ result -> getData ( ) ; }
Completes a multiparts upload, after all parts are uploaded.

@param string $bucket bucket name
@param string $object object name
@param string $uploadId uploadId
@param array $listParts array( array("PartNumber"=> int, "ETag"=>string))
@param array $options Key-Value array
@throws OssException
@return null
Completes a multiparts upload after all parts are uploaded .