由于有多个帐户登录,导致Google云端硬盘直接链接出现403错误 [英] 403 error from Google Drive direct link due to multiple accounts logged in
问题描述
我在Google云端硬盘中有很多图片,并且希望通过直接链接样式以各种方式使用它们:
I have a number of images in Google Drive and I am wanting to use them in various ways via the direct link style:
https://drive.google.com/uc?id=DOCID
在Chrome浏览器中,我登录了三个不同的Google帐户,分别是公司帐户,个人帐户和另一个.如果我通过Google云端硬盘界面导航到公司帐户中的文件,则可以正常查看.如果我使用的格式为 https://drive.google.com/open?id=DOCID,然后Google云端硬盘界面会正确打开,并显示图像.但是,当我尝试使用上面的uc?id = URL样式直接访问文件时,出现403错误.
In Chrome I am logged into three different Google accounts, my corporate one, my personal one, and one other. If I navigate through the Google Drive interface to my files in the corporate account I can see them fine. If I use the form https://drive.google.com/open?id=DOCID then the Google Drive interface opens properly with the image displayed. However, when I try to access the file directly using the uc?id= URL style above I get a 403 error.
"403.这是一个错误. 很抱歉,您无权访问此页面.这就是我们所知道的."
"403. That’s an error. We're sorry, but you do not have access to this page. That’s all we know."
我之所以这样认为是因为当我使用此URL表单时,出于某种原因,Chrome或Google云端硬盘使用了错误的身份验证凭据-即即使该文件位于公司帐户中,也来自我的个人帐户.
I have tracked this down to being because when I use this URL form, for some reason Chrome or Google Drive are using the wrong authentication credentials - i.e. the ones from my personal account even though this file is in my corporate account.
我已通过启动未经身份验证的Firefox并以公司用户身份登录,然后使用上面的URL:宾果游戏,显示了图像,以此证明了这一点.
I've proved this by firing up Firefox, which isn't authenticated to any account, logging in as my corporate user, and then using the URL above: bingo, the image is displayed.
所以我的问题是:有什么方法可以强制上面的URL样式在访问文件时使用正确的凭据集?
So my question: is there any way to force the URL style above to use the correct set of credentials when accessing the file?
推荐答案
您可以使用drive.google.com/u/1/uc?id=DOCID
或drive.google.com/a/mycorporatedomain.com/uc?id=DOCID
但是,不要依赖这些URL将来不会改变.
However, do not rely on these URL's not changing in the future.
这篇关于由于有多个帐户登录,导致Google云端硬盘直接链接出现403错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!