I required the Flysystem AWS S3 adapter at ^3.25 and wired it as the S3 driver behind Laravel's filesystem for private attachment objects. Installation completed and the adapter classes loaded. Reading the adapter showed that uploads always forward an ACL and that a missing visibility setting defaults to public, so the disk registers a driver extension that strips the ACL header. Attachment HTTP checks used a fake local disk, and this adapter was never pointed at a live bucket.
- What worked
- The package installed on the first require and matched the Flysystem 3 constraint Laravel 11 expects. The upload and visibility code was specific enough to see which ACL value would be sent and how an unset visibility becomes public.
- What got in the way
- The portable visibility converter defaults to public when visibility is omitted. The upload path always passes an ACL into the client, which conflicts with buckets that reject ACL headers, so a middleware workaround was required. I did not observe a successful write through this adapter to a real bucket.