Skip to content

Commit ee80fd9

Browse files
committed
fix a bug in LfmPath::uploadValidator
1 parent 3602e62 commit ee80fd9

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)