Code Context header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($fileName));
$id = '3'
$file_id = '3'
$downloadfile = array(
'Download' => array(
'id' => '3',
'content_type' => '5',
'title' => 'প্রতিষ্ঠানের ছুটিদিন সমূহে',
'downloadfile' => 'files/downloadfile/1432497119_5608.jpg',
'order' => '0',
'created' => '2015-05-24 19:51:59',
'modified' => '2015-05-24 19:51:59',
'isactive' => '1'
)
)
$path = null
$fileName = 'files/downloadfile/1432497119_5608.jpg'
header - [internal], line ??
DownloadsController::download() - APP/Controller/DownloadsController.php, line 43
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 110