From 98790bb09a4159ddb228a43f5cad31b394574e29 Mon Sep 17 00:00:00 2001 From: Loann Meignant Date: Mon, 8 Jun 2020 12:08:19 +0200 Subject: [PATCH] Modifications --- src/BluescaleMailApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BluescaleMailApi.php b/src/BluescaleMailApi.php index e816cca..39bbd98 100644 --- a/src/BluescaleMailApi.php +++ b/src/BluescaleMailApi.php @@ -55,7 +55,7 @@ class BluescaleMailApi if (count($attachments) > 0) { $formatted_attachmments = []; foreach ($attachments as $attachment) { - $file = new UploadedFile($attachment->path, $attachment->fileName, 'application/octet-stream', null, null, false); + $file = new UploadedFile($attachment['path'], $attachment['filename'], 'application/octet-stream', null, null, false); $formatted_attachmments[] = $file; }