src/Uploadcare/Api.php
public function __batchProcessFiles($filesUuidArr, $request_type)
    {
        $filesChunkedArr = array_chunk($filesUuidArr, $this->batchFilesChunkSize);
        $filesArr = array();
        $problemsArr = array();
        $lastStatus = '';
        foreach ($filesChunkedArr as $chunk) {
            $res = $this->__batchProcessFilesChunk($chunk, $request_type);
            $lastStatus = $res['status'];
            if ($lastStatus == "ok") {
                $problemsObj = $res['problems'];
                if (count(get_object_vars($problemsObj)) > 0) {
                    $problemsArr [] = $problemsObj;
                }
                $filesArr = array_merge($filesArr, $res['files']);
            } else {
                throw new \Exception('Error process multiple files', $res);
            }
        }
        return array(
            'status' => $lastStatus,
            'files' => $filesArr,
            'problems' => $problemsArr,
        );
    }
public function __batchProcessFiles($filesUuidArr, $request_type)
    {
        $filesChunkedArr = array_chunk($filesUuidArr, $this->batchFilesChunkSize);
        $filesArr = array();
        $problemsArr = array();
        $lastStatus = '';
        foreach ($filesChunkedArr as $chunk) {
            $res = $this->__batchProcessFilesChunk($chunk, $request_type);
            $lastStatus = $res['status'];
            if ($lastStatus == "ok") {
                $problemsObj = $res['problems'];
                if (count(get_object_vars($problemsObj)) > 0) {
                    $problemsArr [] = $problemsObj;
                }
                $filesArr = array_merge($filesArr, $res['files']);
            } else {
                throw new \Exception('Error process multiple files', $res);
            }
        }
        return array(
            'status' => $lastStatus,
            'files' => $filesArr,
            'problems' => $problemsArr,
        );
    }
Process multiple files with chunk support

@param array $filesUuidArr uploaded file's uuid array you need to process.
@param string $request_type request type, could be PUT or DELETE .
@return array with processed files and problems if any
@throws \Exception