ConstructionConsent Changes
This commit is contained in:
@@ -17,6 +17,15 @@ class File extends mfBaseModel {
|
||||
$this->mimetype = $this->getMimetype();
|
||||
}
|
||||
|
||||
|
||||
public function fileExists() {
|
||||
if(!$this->store_filename) return false;
|
||||
$path = MFUPLOAD_FILE_SAVE_PATH;
|
||||
$path .= ($this->subfolder) ? "/".$this->subfolder : "";
|
||||
$path .= "/".$this->store_filename;
|
||||
return file_exists($path);
|
||||
}
|
||||
|
||||
public function getMimetype() {
|
||||
if(!$this->store_filename) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user