From ee80fd96484a396ec0f607e44cfa4a8874cd4ecc Mon Sep 17 00:00:00 2001 From: Morteza allahpour Date: Mon, 29 Oct 2018 12:51:28 +0330 Subject: [PATCH] fix a bug in LfmPath::uploadValidator --- src/LfmPath.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LfmPath.php b/src/LfmPath.php index 1c28ce66..9ad691cb 100644 --- a/src/LfmPath.php +++ b/src/LfmPath.php @@ -246,7 +246,7 @@ private function uploadValidator($file) throw new \Exception('File failed to upload. Error code: ' . $file->getError()); } - $new_file_name = $this->getNewName($file) . '.' . $file->getClientOriginalExtension(); + $new_file_name = $this->getNewName($file); if ($this->setName($new_file_name)->exists()) { return $this->error('file-exist');