Download All file in one click

I need to download all file in a directory under the webroot folder in one button…what will be the controller and view with get method…
this is the controller to download single file:

public function download($file_name){
$path = WWW_ROOT.“OA_USER_FILES\download_file”. DS . $file_name;
$this->response->file($path, array(
‘download’ => true,
‘name’ => $file_name


you cant, basicly 1 request = 1 download, you can just zip it using

1 Like

You need to zip the files before