From 4b00d79ced3253e9b79000954500645fd2e14d35 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Mon, 15 Jun 2020 13:15:43 +0530 Subject: removed ambiguity of function name --- convertfile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convertfile.inc b/convertfile.inc index a8aed41..76109a8 100755 --- a/convertfile.inc +++ b/convertfile.inc @@ -1,6 +1,6 @@ upload_filepath; $uploadfolder = $row->uid; - exec("/var/www/html/esim_in/sites/all/modules/pspice_to_kicad/convert.sh " . $convert_root_path . " " . $filePath . " " . $uploadfolder, $outputFiles); + exec("./convert.sh" . " " . $convert_root_path . " " . $filePath . " " . $uploadfolder, $outputFiles); $file = $row->upload_filename; $filearray = explode('.', $file); @@ -646,6 +646,12 @@ function pspice_to_kicad_convert_file() header('Content-Type: ' . file_get_mimetype($converted_file)); header('Content-disposition: attachment; filename="' . $filenamewothoutext . ".zip" . '"'); header('Content-Length: ' . filesize($converted_file)); + header("Content-Transfer-Encoding: binary"); + header('Expires: 0'); + header('Pragma: no-cache'); + ob_end_flush(); + ob_clean(); + flush(); readfile($converted_file); } -- cgit