Skip to content

Commit

Permalink
Merge pull request #82 from aarreedd/patch-1
Browse files Browse the repository at this point in the history
#61 Add extension to filename when using withFilename()
  • Loading branch information
patrickbrouwers committed Oct 8, 2020
2 parents beef0b8 + 7a6431c commit 12a696e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/WithFilename.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function handleFilename(ActionRequest $request): void
{
$fields = $request->resolveFields();

if ($filename = $fields->get('filename')) {
if ($filename = $fields->get('filename', $this->filename)) {
if (!Str::contains($filename, '.')) {
$filename .= '.' . $this->getDefaultExtension();
}
Expand Down

0 comments on commit 12a696e

Please sign in to comment.