Fix a duplication of the extension when uploading files.

This commit is contained in:
Pavel Mironchik 2021-10-29 20:52:39 +06:00
parent abc18da51c
commit 35495a6495

View File

@ -142,7 +142,7 @@ trait Uploads
$file_name = Str::limit($file_name, 110); $file_name = Str::limit($file_name, 110);
} }
return $file_name . '.' . $this->extension($file); return $file_name;
} }
/** /**