Code Context header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($fileName));
$id = '2'
$file_id = '2'
$downloadfile = array(
'Download' => array(
'id' => '2',
'content_type' => '4',
'title' => 'রেজিস্টাশন ফরম ',
'downloadfile' => 'files/downloadfile/1432408729_1502.jpg',
'order' => '0',
'created' => '2015-05-23 19:18:49',
'modified' => '2015-05-23 19:18:49',
'isactive' => '1'
)
)
$path = null
$fileName = 'files/downloadfile/1432408729_1502.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