Finished Cpeshipping
This commit is contained in:
@@ -4,8 +4,10 @@ class File extends mfBaseModel {
|
||||
private $creator;
|
||||
private $editor;
|
||||
|
||||
public function createFile($overwrite = false) {
|
||||
// TODO
|
||||
public static function createFile($filename = false, $overwrite = false) {
|
||||
// make filename
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function delete() {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user