From bc8121f0c4636e217c7b0e86971601d48a1f38c1 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Fri, 26 Jul 2019 11:42:08 +0530 Subject: Modify the name of the zip file downloaded --- download.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download.inc b/download.inc index bfe0be5..78cfbbe 100644 --- a/download.inc +++ b/download.inc @@ -17,7 +17,7 @@ function esim_download_project_file() header("Cache-Control: public"); header("Content-Description: File Transfer"); header('Content-Type: application/zip'); - header('Content-disposition: attachment; filename="' . $root_path . '/' . $workshop_project_file . '"'); + header('Content-disposition: attachment; filename="' . $uploaded_project_file->project_file . '"'); header('Content-Length: ' . filesize($root_path . '/' . $workshop_project_file)); header("Content-Transfer-Encoding: binary"); header('Expires: 0'); -- cgit