Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

maartenjean's avatar

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?

0 likes
3 replies

Please or to participate in this conversation.