GCP Cloud Storage Bucket with Laravel Spatie #1373
Unanswered
ABC2015
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Community:
Wanted to confirm that use the GCP storage bucket using Laravel Spatie for GCP cloud storage works as expected. Having some trouble getting images to POST based on the network request we are seeing.
//Config below**
'storage_disk' => env('CANVAS_STORAGE_DISK', 'gcs'),
//General Storage Bucket
'gcs' => [
'driver' => 'gcs',
'key_file_path' => env('GOOGLE_CLOUD_KEY_FILE', null), // optional: /path/to/service-account.json
'project_id' => env('GOOGLE_CLOUD_PROJECT_ID', 'your-project-id'), // optional: is included in key file
'bucket' => env('GOOGLE_CLOUD_STORAGE_BUCKET', 'your-bucket'),
'path_prefix' => env('GOOGLE_CLOUD_STORAGE_PATH_PREFIX', ""), // optional: /default/path/to/apply/in/bucket
'storage_api_uri' => env('GOOGLE_CLOUD_STORAGE_API_URI', null), // see: Public URLs below
'visibility' => 'private', // optional: public|private
'metadata' => ['cacheControl' => 'public,max-age=86400'], // optional: default metadata
],
ISSUE:
Essentially the application post request to google cloud apis does not seem to be placing the file in the right path.
Video of Issue
https://app.screencast.com/dFyxElAfDPBvB
https://app.screencast.com/a1GGu1I3FpL2j
Any suggestions would be helpful.
Beta Was this translation helpful? Give feedback.
All reactions