Use the storage facade https://laravel.com/docs/9.x/filesystem#retrieving-files
Aug 6, 2022
3
Level 1
fopen() with a file on S3 space
Hi all
I recently moved to Digital Ocean spaces for filestorage because Im running multiple app servers behind load balancer.
I'm using fopen() to attach a file from storage to the HTTP client. But when using the S3 fullpath it gives me SSL errors/or error that name cannot contain null bytes.
Anyone that can point me in the right direction on how to use S3 files to send them with HTTP client?
Level 102
Please or to participate in this conversation.