diff options
Diffstat (limited to 'app/class/mesg.class.php')
-rw-r--r-- | app/class/mesg.class.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/class/mesg.class.php b/app/class/mesg.class.php index fd541cd..5d6ba4d 100644 --- a/app/class/mesg.class.php +++ b/app/class/mesg.class.php @@ -247,7 +247,13 @@ class mesg extends object public function setAttachment(array $file) : bool { $path = "dynmic/attach/" . $this->guid; - return saveFile($file, $path, self::ATTACH_MAXSIZE); + $origName = ""; + + $ret = saveFile($file, $path, self::ATTACH_MAXSIZE, NULL, $origName); + $this->attachment = $origName; + $this->saveObj(); + + return $ret; } } |