ConstructionConsent Changes

This commit is contained in:
Frank Schubert
2025-02-13 14:35:57 +01:00
parent 21ae4fe212
commit ea9e91e6ab
9 changed files with 313 additions and 159 deletions

View File

@@ -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;