summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-07-26 11:42:08 +0530
committerSashi202019-07-26 11:42:08 +0530
commitbc8121f0c4636e217c7b0e86971601d48a1f38c1 (patch)
tree10ec50ddc128d2468fc4af9e8b464ea44371ab84
parentce69ac900621fe10eb9d7660171cf4c25f72dfcb (diff)
downloadesim_workshop_form-bc8121f0c4636e217c7b0e86971601d48a1f38c1.tar.gz
esim_workshop_form-bc8121f0c4636e217c7b0e86971601d48a1f38c1.tar.bz2
esim_workshop_form-bc8121f0c4636e217c7b0e86971601d48a1f38c1.zip
Modify the name of the zip file downloaded
-rw-r--r--download.inc2
1 files changed, 1 insertions, 1 deletions
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');