Skip to content

Commit 77781d2

Browse files
authored
Merge pull request #706 from mortza/master
fix a bug in LfmPath::uploadValidator
2 parents 3602e62 + ee80fd9 commit 77781d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LfmPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private function uploadValidator($file)
246246
throw new \Exception('File failed to upload. Error code: ' . $file->getError());
247247
}
248248

249-
$new_file_name = $this->getNewName($file) . '.' . $file->getClientOriginalExtension();
249+
$new_file_name = $this->getNewName($file);
250250

251251
if ($this->setName($new_file_name)->exists()) {
252252
return $this->error('file-exist');

0 commit comments

Comments
 (0)