src/BaiduBce/Services/Bos/BosClient.php
public function completeMultipartUpload(
        $bucketName,
        $key,
        $uploadId,
        array $partList,
        $options = array()
    ) {
        if (empty($bucketName)) {
            throw new \InvalidArgumentException(
                '$bucketName should not be empty or null.'
            );
        }
        if (empty($key)) {
            throw new \InvalidArgumentException(
                '$key should not be empty or null.'
            );
        }
        if (empty($uploadId)) {
            throw new \InvalidArgumentException(
                '$uploadId should not be empty or null.'
            );
        }

        $headers = array();
        $this->populateRequestHeadersWithOptions($headers, $options);
        list($config) = $this->parseOptions($options, BosOptions::CONFIG);

        return $this->sendRequest(
            HttpMethod::POST,
            array(
                BosOptions::CONFIG => $config,
                'bucket_name' => $bucketName,
                'key' => $key,
                'body' => json_encode(array('parts' => $partList)),
                'headers' => $headers,
                'params' => array('uploadId' => $uploadId),
            )
        );
    }
public function completeMultipartUpload(
        $bucketName,
        $key,
        $uploadId,
        array $partList,
        $options = array()
    ) {
        if (empty($bucketName)) {
            throw new \InvalidArgumentException(
                '$bucketName should not be empty or null.'
            );
        }
        if (empty($key)) {
            throw new \InvalidArgumentException(
                '$key should not be empty or null.'
            );
        }
        if (empty($uploadId)) {
            throw new \InvalidArgumentException(
                '$uploadId should not be empty or null.'
            );
        }

        $headers = array();
        $this->populateRequestHeadersWithOptions($headers, $options);
        list($config) = $this->parseOptions($options, BosOptions::CONFIG);

        return $this->sendRequest(
            HttpMethod::POST,
            array(
                BosOptions::CONFIG => $config,
                'bucket_name' => $bucketName,
                'key' => $key,
                'body' => json_encode(array('parts' => $partList)),
                'headers' => $headers,
                'params' => array('uploadId' => $uploadId),
            )
        );
    }
public function completeMultipartUpload ( $ bucketName , $ key , $ uploadId , array $ partList , $ options = array ( ) ) { if ( empty ( $ bucketName ) ) { throw new \ InvalidArgumentException ( '$bucketName should not be empty or null.' ) ; } if ( empty ( $ key ) ) { throw new \ InvalidArgumentException ( '$key should not be empty or null.' ) ; } if ( empty ( $ uploadId ) ) { throw new \ InvalidArgumentException ( '$uploadId should not be empty or null.' ) ; } $ headers = array ( ) ; $ this -> populateRequestHeadersWithOptions ( $ headers , $ options ) ; list ( $ config ) = $ this -> parseOptions ( $ options , BosOptions :: CONFIG ) ; return $ this -> sendRequest ( HttpMethod :: POST , array ( BosOptions :: CONFIG => $ config , 'bucket_name' => $ bucketName , 'key' => $ key , 'body' => json_encode ( array ( 'parts' => $ partList ) ) , 'headers' => $ headers , 'params' => array ( 'uploadId' => $ uploadId ) , ) ) ; }
After finish all the task, complete multi_upload_file.
bucket, key, upload_id, part_list, options=None

@param string $bucketName The bucket name.
@param string $key The object path.
@param string $uploadId The upload id.
@param array $partList (partnumber and etag) list
@param array $options

@return mixed
After finish all the task complete multi_upload_file . bucket key upload_id part_list options = None