function _actionDownload($aFileInfo, $sFieldMediaId)
{
$aFile = BxDolService::call('files', 'get_file_array', array($aFileInfo[$sFieldMediaId]), 'Search');
if (!$aFile['date']) {
$this->_oTemplate->displayPageNotFound();
exit;
}
$aFile['full_name'] = uriFilter($aFile['title']) . '.' . $aFile['extension'];
$aPathInfo = pathinfo($aFile['path']);
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-type: " . $aFile['mime_type']);
header("Content-Length: " . filesize($aFile['path']));
header("Content-Disposition: attachment; filename={$aFile['full_name']}");
readfile($aFile['path']);
exit;
}