Code Context header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($fileName));
$id = '4'
$file_id = '4'
$downloadfile = array(
'CoCurricularActivity' => array(
'id' => '4',
'title' => 'কুইজ ক্লাব',
'description' => '<p> </p>
',
'attach_file' => 'files/news/1694680409_5084.jpg',
'isactive' => '1',
'posted_date' => '',
'created' => '2015-06-27',
'modified' => '2023-09-14',
'order' => '3'
)
)
$path = null
$fileName = 'files/news/1694680409_5084.jpg'
header - [internal], line ??
CoCurricularActivitiesController::download() - APP/Controller/CoCurricularActivitiesController.php, line 39
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