Merge branch 'Panda_download' of https://github.com/lanlab-org/LRR into BugFix-201-Mabasa-Samantha-Nafis

SIMPLICITY_Bug-189_Course_Delete_btn
Hui Lan 2021-05-21 14:54:19 +08:00
commit a2d80ffa6e
1 changed files with 3 additions and 2 deletions

View File

@ -22,8 +22,9 @@ $time = time();
if ( (isset($_SESSION["user_student_id"]) && strpos($file, $_SESSION["user_student_id"])) || $_SESSION['user_type'] == "Lecturer" || $_SESSION['user_type'] == "TA") {
// 发送文件头部
header("Content-type: $type");
header("Content-Disposition: attachment;filename=$filename");
header('Content-Disposition: attachment;filename="'.urldecode($filename).'"' );
header("Content-Transfer-Encoding: binary");
header('Pragma: no-cache');
header('Expires: 0');