Why is S3 config option 'stream_reads' false by default? #49232
-
Hi there 👋 After digging for a bit, I found out that Laravel disables streamed reads by default, unless the undocumented (!) IMHO this is pretty unexpected, because I know Laravel mainly wraps Flysystem, and that streams by default. This is also what I would expect from a method that's called An attempt was made to add that to the docs in laravel/docs#8371, but it was closed because it was missing details. I'd like to take another stab at this one, but to do so, I think I need to answer a question: @driesvints, maybe you are reading this. It seems like you added that logic in #34001, could you shed some light on this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I don't know anymore why it was false by default, sorry. Most likely because it was a new feature at the time. |
Beta Was this translation helpful? Give feedback.
-
This was killing me for two days. The file was streaming from the public disk no problem, but I couldn't get it to load from s3 for anything. Finally, after some googling, I found this. Thanks for figuring it out @adi64 this really unblocked me. |
Beta Was this translation helpful? Give feedback.
-
This also bit me. Thanks for this. I'm using the league CSV which requires the stream to be seekable, but that doesn't appear to work with the Storage facade for S3 for some reason. Did any of you have to deal with seekable streams and can point me in a good direction? |
Beta Was this translation helpful? Give feedback.
I don't know anymore why it was false by default, sorry. Most likely because it was a new feature at the time.