Support the ongoing development of Laravel.io →
posted 8 years ago
Mail Queues
Last updated 7 months ago.
0

Are you only sending the file path for the attachment as data to the queue, or the file data? And did you store it somewhere, not just a tmp file?

Last updated 7 months ago.
0

barryvdh said:

Are you only sending the file path for the attachment as data to the queue, or the file data? And did you store it somewhere, not just a tmp file?

Hi,

The file gets saved into the public folder and I pass the URL of the file with the queue.

This is the code I use and this is the failed job payload.

Last updated 7 months ago.
0

Any ideas?

Last updated 7 months ago.
0

I too had this problem especially when I was trying to attach directly from File::get(). If I remember correctly, I got it work by storing the file on a tmp directory and link it using the file path when doing on queue. ( I am using Iron queue tho )

Maybe try using the file path instead of URL one instead?

Last updated 7 months ago.
0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Sekonda sekonda Joined 28 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.