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

alihennous's avatar

Stream files to the cloud

Hello my friends. I host my website in Godaddy hosting and use Google cloud storage in my file system I am successfully uploading your site files

But the files are uploaded to the server, and then they are pushed to Google Cloud Storage. The process takes a long time. Please, I want a solution.

Storage::disk('gcs')->putFileAs($dir, $file, $filename);
0 likes
1 reply
drewdan's avatar

Laravel Vapor which has been designed for use with S3 buckets has a file streaming option: https://docs.vapor.build/1.0/resources/storage.html

Could look at something like that, though I am not sure a client already exists for GCS. Or consider moving to AWS S3 buckets. You do not need to be using vapor to use the above tool.

Please or to participate in this conversation.