From 4d09b2f1f574e18dbca7587e6b89178cafb4ca2f Mon Sep 17 00:00:00 2001 From: Przemek Dziewa Date: Sat, 5 Nov 2022 00:21:14 +0100 Subject: [PATCH] Fix bug with unkown mime property in Media (#3082) --- src/MediaCollections/Models/Media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MediaCollections/Models/Media.php b/src/MediaCollections/Models/Media.php index 3596b3138..132b65812 100644 --- a/src/MediaCollections/Models/Media.php +++ b/src/MediaCollections/Models/Media.php @@ -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;