src/Uploadcare/Api.php
public function __batchProcessFilesChunk($filesUuidArr, $request_type)
    {
        if (count($filesUuidArr) > $this->batchFilesChunkSize) {
            throw new \Exception('Files number should not exceed '.$this->batchFilesChunkSize.' items per request.');
        }
        $data = $this->__preparedRequest('files_storage', $request_type, array(), $filesUuidArr);
        $files_raw = (array)$data->result;
        $result = array();
        foreach ($files_raw as $file_raw) {
            $result[] = new File($file_raw->uuid, $this, $file_raw);
        }
        return array(
            'status' => (string)$data->status,
            'files' => $result,
            'problems' => $data->problems,
        );
    }
public function __batchProcessFilesChunk($filesUuidArr, $request_type)
    {
        if (count($filesUuidArr) > $this->batchFilesChunkSize) {
            throw new \Exception('Files number should not exceed '.$this->batchFilesChunkSize.' items per request.');
        }
        $data = $this->__preparedRequest('files_storage', $request_type, array(), $filesUuidArr);
        $files_raw = (array)$data->result;
        $result = array();
        foreach ($files_raw as $file_raw) {
            $result[] = new File($file_raw->uuid, $this, $file_raw);
        }
        return array(
            'status' => (string)$data->status,
            'files' => $result,
            'problems' => $data->problems,
        );
    }
public function __batchProcessFilesChunk ( $ filesUuidArr , $ request_type ) { if ( count ( $ filesUuidArr ) > $ this -> batchFilesChunkSize ) { throw new \ Exception ( 'Files number should not exceed ' . $ this -> batchFilesChunkSize . ' items per request.' ) ; } $ data = $ this -> __preparedRequest ( 'files_storage' , $ request_type , array ( ) , $ filesUuidArr ) ; $ files_raw = ( array ) $ data -> result ; $ result = array ( ) ; foreach ( $ files_raw as $ file_raw ) { $ result [ ] = new File ( $ file_raw -> uuid , $ this , $ file_raw ) ; } return array ( 'status' => ( string ) $ data -> status , 'files' => $ result , 'problems' => $ data -> problems , ) ; }
Run request to process multiple files

@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
Run request to process multiple files