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');