google-cloud-storage

URLs not found after deploying create-react-app build to Google Cloud Platform

女生的网名这么多〃 提交于 2020-06-26 21:18:24
问题 I've uploaded a create-react-app build (with an app.yaml file) to a GCP bucket. The app has then been deployed on a App Engine instance using the cloud shell. Going to the app's root URL works fine. But going to example.com/anything returns the following error: Error: Not Found The requested URL /anything was not found on this server. App.yaml file looks like this: runtime: python27 api_version: 1 threadsafe: true handlers: - url: /(.*\.(html|css|js)) static_files: build/\1 upload: build/(.*\

URLs not found after deploying create-react-app build to Google Cloud Platform

瘦欲@ 提交于 2020-06-26 21:16:31
问题 I've uploaded a create-react-app build (with an app.yaml file) to a GCP bucket. The app has then been deployed on a App Engine instance using the cloud shell. Going to the app's root URL works fine. But going to example.com/anything returns the following error: Error: Not Found The requested URL /anything was not found on this server. App.yaml file looks like this: runtime: python27 api_version: 1 threadsafe: true handlers: - url: /(.*\.(html|css|js)) static_files: build/\1 upload: build/(.*\

upload to google cloud storage signed url with javascript

允我心安 提交于 2020-06-24 11:24:48
问题 With the following code I'm able to upload to my publicly writable bucket in google cloud storage. (allUsers has write permission). However If the bucket isn't publicly writable then I get a 401 unauthorised error. (I don't want the bucket to be publicly writable). var file = $scope.myFile; var fileData = file; var boundary = '-------314159265358979323846'; var delimiter = "\r\n--" + boundary + "\r\n"; var close_delim = "\r\n--" + boundary + "--"; var reader = new FileReader(); reader

upload to google cloud storage signed url with javascript

爷,独闯天下 提交于 2020-06-24 11:24:07
问题 With the following code I'm able to upload to my publicly writable bucket in google cloud storage. (allUsers has write permission). However If the bucket isn't publicly writable then I get a 401 unauthorised error. (I don't want the bucket to be publicly writable). var file = $scope.myFile; var fileData = file; var boundary = '-------314159265358979323846'; var delimiter = "\r\n--" + boundary + "\r\n"; var close_delim = "\r\n--" + boundary + "--"; var reader = new FileReader(); reader

Cloud Run Request Limit

风格不统一 提交于 2020-06-23 12:41:09
问题 Currently, Cloud Run has a request limit of 32 Mb per request, which makes it impossible to upload files like videos (which placed with no changes to GCP Storage). Meantime All Quotas page doesn't list this limitation as the one you can request an increase from support. So question is - does anyone know how to increase this limit or how to make it possible (uploading video and bigger files) to Cloud Run with given limitation? 回答1: Google recommended best practice is to use Signed URLs to

Firebase Cloud Storage: resource: the server responded with a status of 403 ()

怎甘沉沦 提交于 2020-06-17 09:45:11
问题 I make a simple audio recording web app using Firebase Hosting. I would like to record audio on browser and upload it to Cloud Storage. When I deploy and access my app, I can record audio. However the app failed to upload the audio to Cloud Storage. (I use Windows 10, Windows Subsystems for Linux, Debian 10.3 and Google Chrome browser. ) This is an error message in browser's console. firebasestorage.googleapis.com/v0/b/ondoku-dc29c.appspot.com/o?name=audio%2Fspeech.wav:1 Failed to load

GCP-Storage: do files appear before upload is complete

核能气质少年 提交于 2020-06-16 03:49:08
问题 I want to transfer files into a VM whenever there is a new file added to storage, the problem is that i want the transfer to be done only when the upload is complete So my question is : Do files appear even when the upload is still going on ? which means if I build a program that looks for new files every second, would it transfer the files from gcs to VM even if the upload is incomplete or the transfer would start whenever the upload is complete and not while it is uploading ? 回答1: Google

GCP-Storage: do files appear before upload is complete

一世执手 提交于 2020-06-16 03:48:07
问题 I want to transfer files into a VM whenever there is a new file added to storage, the problem is that i want the transfer to be done only when the upload is complete So my question is : Do files appear even when the upload is still going on ? which means if I build a program that looks for new files every second, would it transfer the files from gcs to VM even if the upload is incomplete or the transfer would start whenever the upload is complete and not while it is uploading ? 回答1: Google

Exporting BigQuery table from one project to another

与世无争的帅哥 提交于 2020-06-16 02:20:07
问题 I'm trying to copy a BigQuery table (Table1) stored within a Google Cloud Project (Project1) to another Google Cloud Project (Project2). The table is on the order of TBs. What's the best way to do this so that I don't have to export the table locally? Should I export the table from Project1 to Google Cloud Storage, and then to Project2? Or is there a better way? 回答1: Use bq command line tool to copy a table from one project to another. You can have a look at the following sample command

Exporting BigQuery table from one project to another

二次信任 提交于 2020-06-16 02:19:44
问题 I'm trying to copy a BigQuery table (Table1) stored within a Google Cloud Project (Project1) to another Google Cloud Project (Project2). The table is on the order of TBs. What's the best way to do this so that I don't have to export the table locally? Should I export the table from Project1 to Google Cloud Storage, and then to Project2? Or is there a better way? 回答1: Use bq command line tool to copy a table from one project to another. You can have a look at the following sample command