Good morning,
I am uploading my files locally through VichUploaderBundle. Every thing works perfectly.
Now I want no more store my files locally: I want to store them on Google Cloud Storage. I found that KnpGaufretteBundle could be used for storing files in the cloud.
So, is there any example or a example's link on how to configure Gaufrette (the php package) or KnpGaufretteBundle (the symfony bundle) for storing/uploading/reading files on google-cloud-storage
?
The only thing I found is that link which is an adapter class for GoogleCloudStorage.
I found another link regarding this issue but it proposes an example for storing files on amazon-s3
: upload-files-to-amazon-s3-with-symfony2-and-gaufrette
Thanks for you help...
Is possible to use KnpGaufretteBundle to do that. You only need to create a factory that creates a Google Client fully authenticated and return the Google Service Storage with that Client. Something like that:
You also need to configure the KnpGaufretteBundle, for this look at: KnpGaufretteBundle-GoogleCloudStorage
Here there's a post in GitHub where explains the factory issue: post