让匿名用户使用 Google Drive SDK 将文件上传到我的 Google Drive [英] Let anonymous users upload files to my Google Drive using the Google Drive SDK

查看:33
本文介绍了让匿名用户使用 Google Drive SDK 将文件上传到我的 Google Drive的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个网络应用程序,我需要让用户上传文件.我想将所有用户上传的文件存储在我的"中央 Google 云端硬盘中.用户不必登录他们的 Google 帐户或授权应用程序,因为他们将上传到我的 Google Drive.这可能吗?

I'm building a web app where I need to let users upload files. I want to store the files uploaded by all the users in 'my' central Google Drive. The users shouldn't have to login to their Google Accounts or authorize the app, because they will be uploading to my Google Drive. Is this possible?

推荐答案

您应该使用服务帐户代表您的应用程序存储文件:

You should use service accounts to store files on behalf of your application:

https://developers.google.com/drive/service-accounts

这篇关于让匿名用户使用 Google Drive SDK 将文件上传到我的 Google Drive的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆