Skip to content

Commit

Permalink
Fix bug with unkown mime property in Media (#3082)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdziewa authored Nov 4, 2022
1 parent ff4a546 commit 4d09b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MediaCollections/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public function mailAttachment(string $conversion = ''): Attachment
$attachment = Attachment::fromStorageDisk($this->disk, $this->getPathRelativeToRoot($conversion))->as($this->file_name);

if ($this->mime_type) {
$attachment->withMime($this->mime);
$attachment->withMime($this->mime_type);
}

return $attachment;
Expand Down

0 comments on commit 4d09b2f

Please sign in to comment.