Finished Cpeshipping

This commit is contained in:
Frank Schubert
2021-10-28 20:53:27 +02:00
parent 877d511030
commit 5a9ffd2679
11 changed files with 425 additions and 17 deletions

View File

@@ -26,9 +26,10 @@ class FileController extends mfBaseController {
throw new Exception("File not found", 404);
}
$filename = $file->store_filename;
$path = MFUPLOAD_FILE_SAVE_PATH."/documents/$filename";
$path = MFUPLOAD_FILE_SAVE_PATH;
$path .= ($file->subfolder) ? "/".$file->subfolder : "";
$path .= "/$filename";
//var_dump($path);exit;
if(!file_exists($path)) {
throw new Exception("File not found", 4041);
}