English 中文(简体)
将图像上载到谷歌云储存的最佳方式?
原标题:Best way to upload images to Google Cloud Storage?

Background: Currently trying to implement a feature so that users on my site can upload their profile image to GCS.

我的理解是,在使用客户图书馆时,你可以有两种方式上载物体:

The standard way (see here: https://cloud.google.com/storage/docs/uploading-objects#storage-upload-object-nodejs) and 2. doing it with a Signed URL (see here: https://cloud.google.com/storage/docs/samples/storage-generate-upload-signed-url-v4)

是否有理由问,对我的具体使用情况来说,有什么更好的方法?

最佳回答

The first link requires the user to upload their objects to your server (running Node.js) and then your server uploads the objects to Google Cloud Storage. This common method ensures security as the objects can be scanned before uploading to Cloud Storage.

通常建议URLs签名,因为客户直接上载,通过绕过服务器进行云层储存。

最佳方法取决于对象的规模、客户网络的可靠性、安全目标、网络成本(压力和回归)、客户如何信任等等。

问题回答

暂无回答




相关问题
How to make Sequelize use singular table names

I have an model called User but Sequelize looks for the table USERS whenever I am trying to save in the DB. Does anyone know how to set Sequelize to use singular table names? Thanks.

What is Node.js? [closed]

I don t fully get what Node.js is all about. Maybe it s because I am mainly a web based business application developer. What is it and what is the use of it? My understanding so far is that: The ...

Clientside going serverside with node.js

I`ve been looking for a serverside language for some time, and python got my attention somewhat. But as I already know and love javascript, I now want learn to code on the server with js and node.js. ...

Can I use jQuery with Node.js?

Is it possible to use jQuery selectors/DOM manipulation on the server-side using Node.js?

How do I escape a string for a shell command in node?

In nodejs, the only way to execute external commands is via sys.exec(cmd). I d like to call an external command and give it data via stdin. In nodejs there does yet not appear to be a way to open a ...

热门标签