diff options
-rw-r--r-- | download.inc | 2 |
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'); |