📅  最后修改于: 2022-03-11 14:56:22.899000             🧑  作者: Mango
public function download($file)
{
$this->load->helper('download');
$name = $file;
$data = file_get_contents('./uploads/foldername/'.$file);
force_download($name, $data);
redirect('index','refresh');
}