无需登录即可预览谷歌驱动器文件 [英] Preview of google drive files without login

查看:106
本文介绍了无需登录即可预览谷歌驱动器文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在没有登录到Google帐户的情况下在网络上预览Google云端硬盘文件。在当前的情况下,只有公共文件通过嵌入链接才可见,我们需要在iframe中显示文件的预览,这些预览不公开并且没有登录。

解决方案

这里隐含了公共和私人这两个词的区别。谷歌身份验证的工作方式是任何公开的数据都是免费的,供任何人查看。如果您将该文件设置为公开,任何人都可以在不登录或向Google验证的情况下打开它。



另一方面,私人文件必须具有访问权限。无法预览您无权访问的文件。没有解决方法。

How we can get preview of google drive files in web without login into google account. In current scenario only public files are visible through embed link, we need to show preview of file in iframe which are not public and without login.

解决方案

Here in lies the difference between the term "public" and "private". The way google authentication works is that any data that is public is free for anyone to see. If you set the file to public anyone can open it without being logged in or authenticated to Google.

Private files on the other hand you must have permission to access. There is no way to preview a file you do not have permissions to access. There is no workaround for this.

这篇关于无需登录即可预览谷歌驱动器文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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