Category : google-cloud-storage

I am using Google Cloud Storage(GCS) as a Filesystem in my Laravel application. The objects in my GCS bucket are not publicly accessible. Here is my code -: Config -: filesystems.php <?php return [ /* |————————————————————————– | Default Filesystem Disk |————————————————————————– | | Here you may specify the default filesystem disk that should be used ..

Read more

I am using the google/cloud-storage package in an API and successfully uploading pdf files to a Google Cloud Storage bucket. However, the pdf files are first saved locally before they are uploaded to the Google Cloud Storage bucket. How can I skip saving them locally and instead upload them directly to the Google Cloud Storage ..

Read more

I currently am using react hook powered component to record my screen, and subsequently upload it to Google Cloud Storage. However, when it finishes, the file created inside Google Cloud appears to be corrupt. This is the gist of the code within my React component, where useMediaRecorder is from here: https://github.com/wmik/use-media-recorder – let { error, ..

Read more

I have uploaded my laravel project to google App Engine Standard. The project works fine in local but it miss files on google cloud. This is my configuration app.yaml for google bucket GOOGLE_CLOUD_PROJECT_ID= example-294419 GOOGLE_CLOUD_KEY_FILE= google-key.json GOOGLE_CLOUD_STORAGE_BUCKET= my-storage on google cloud it give this error: Given keyfile path google-key.json does not exist Please help me ..

Read more

I’ve been using Laravel to import files uploaded to google cloud storage for a while. Without changing any code, the following call suddenly stopped working. Excel::import($importer, $document->path, env(‘GOOGLE_STORAGE_DISK’, ‘local’), $fileType); The return error traced from the import method is below. "message": "mkdir(): No such file or directory", "exception": "ErrorException", "file": "/workspace/vendor/maatwebsite/excel/src/Files/TemporaryFileFactory.php", "line": 52, "trace": [ ..

Read more

How do I upload images to firebase cloud storage? The documentation gives only these methodes but no upload method. This is the documentation link https://firebase-php.readthedocs.io/en/stable/cloud-storage.html $storage = $factory->createStorage(); $storageClient = $storage->getStorageClient(); $defaultBucket = $storage->getBucket(); I have seen another stack question related but don’t understand the answer. I would also like to get a link to ..

Read more

I have an implementation of Google Cloud file upload that’s been working for months. I’m not sure why it’s throwing this NotFoundException all of a sudden. Stack : OS Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 PHP 7.4.8 Laravel Framework 7.26.1 Not Found {"userId":3930,"exception":"[object] (GoogleCloudCoreExceptionNotFoundException(code: 404): Not Found at vendor/google/cloud-core/src/RequestWrapper.php:362) Here’s the upload ..

Read more