src/Bynder/Api/Impl/Upload/FileUploader.php
private function registerChunkAsync($uploadRequestInfo, $chunkNumber)
    {
        $s3Filename = sprintf("%s/p%d", $uploadRequestInfo['s3_filename'], $chunkNumber);

        $data = [
            'id' => $uploadRequestInfo['s3file']['uploadid'],
            'targetid' => $uploadRequestInfo['s3file']['targetid'],
            'filename' => $s3Filename,
            'chunkNumber' => $chunkNumber,
        ];
        return $this->requestHandler->sendRequestAsync(
            'POST',
            sprintf('api/v4/upload/%s/', $uploadRequestInfo['s3file']['uploadid']),
            ['form_params' => $data]
        );
    }
private function registerChunkAsync($uploadRequestInfo, $chunkNumber)
    {
        $s3Filename = sprintf("%s/p%d", $uploadRequestInfo['s3_filename'], $chunkNumber);

        $data = [
            'id' => $uploadRequestInfo['s3file']['uploadid'],
            'targetid' => $uploadRequestInfo['s3file']['targetid'],
            'filename' => $s3Filename,
            'chunkNumber' => $chunkNumber,
        ];
        return $this->requestHandler->sendRequestAsync(
            'POST',
            sprintf('api/v4/upload/%s/', $uploadRequestInfo['s3file']['uploadid']),
            ['form_params' => $data]
        );
    }
private function registerChunkAsync ( $ uploadRequestInfo , $ chunkNumber ) { $ s3Filename = sprintf ( "%s/p%d" , $ uploadRequestInfo [ 's3_filename' ] , $ chunkNumber ) ; $ data = [ 'id' => $ uploadRequestInfo [ 's3file' ] [ 'uploadid' ] , 'targetid' => $ uploadRequestInfo [ 's3file' ] [ 'targetid' ] , 'filename' => $ s3Filename , 'chunkNumber' => $ chunkNumber , ] ; return $ this -> requestHandler -> sendRequestAsync ( 'POST' , sprintf ( 'api/v4/upload/%s/' , $ uploadRequestInfo [ 's3file' ] [ 'uploadid' ] ) , [ 'form_params' => $ data ] ) ; }
Registers a temporary chunk in Bynder.

@param $uploadRequestInfo
@param $chunkNumber

@return Promise\Promise
@throws Exception
Registers a temporary chunk in Bynder .