Unable to open file for reading
billmn opened this issue · comments
I've tried your plugin but I receive this error:
Swift_IoException: Unable to open file for reading [/assets/docs/test-1584121862.pdf] in /statamic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php:144
I've changed the code here: https://github.com/madebywild/statamic-form-with-attachments/blob/master/FormWithAttachments/FormWithAttachmentsListener.php#L29
with this:
array_push($assets, root_path(trim($submission->get($key), '/')));
And all works fine