Skip to content

Commit

Permalink
Fix a duplication of the extension when uploading files.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-mironchik committed Oct 29, 2021
1 parent abc18da commit 35495a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Traits/Uploads.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getMediaFileName($file): string
$file_name = Str::limit($file_name, 110);
}

return $file_name . '.' . $this->extension($file);
return $file_name;
}

/**
Expand Down

0 comments on commit 35495a6

Please sign in to comment.