diff --git a/code/app/Models/Concerns/AttachableTrait.php b/code/app/Models/Concerns/AttachableTrait.php index 0c479eee..7d891279 100644 --- a/code/app/Models/Concerns/AttachableTrait.php +++ b/code/app/Models/Concerns/AttachableTrait.php @@ -110,7 +110,7 @@ public function attachByRequest($request, $id = null) if (is_null($file) == false && $file->isValid()) { $filename = $this->storeFile($name, $file); - if ($filanem == false) { + if ($filename == false) { return false; }