Error displaying image from Google Drive using WebViewLink in Safari and Internet Explorer for authenticated users

I am working on an intranet that requires user authentication to access private folders for a registered Google Drive user. Images are extracted from folders and displayed on the intranet using a WebViewLink image. This works fine in Chrome and Safari, but doesn't seem to work in Safari or Internet Explorer. Safari gives me the error "too many redirects". In IE, I do not see any errors, but the images are not displayed. I tried to find any errors on the "Network" tab, but could not find them.

However, I found that if I copy WebViewLink for one of the images and paste it into the address bar of the browser, the image will be displayed successfully. If I return to the web application and refresh the page, the error will disappear and all images will be displayed successfully. This works only for Safari and does not work for Internet Explorer.

Images and their parent folders cannot be shared; All data is sensitive and must remain private. Has anyone encountered this problem and found a solution that always works? I tried loading images in an iframe that didn't work.

Please let me know if you need more information. Thanks!!

+6
source share
2 answers

This is due to the fact that the WebViewLink property is returned only in public folders for viewing its static web resources (HTML, CSS, JS, image files, etc.).), And not individual files inside such folders.

Support for files that cannot be edited using Google Drive is limited. Google does not offer permalinks for images. For example, if you check the source code of a page or use features such as "view information about a Firefox page," you will get a link that doesn't work. You need to replace this URL http://docs.google.com/file/d/FILEID/ with the address bar http://drive.google.com/uc?export=view&id=FILEID , where FILEID is a long sequence of numbers and letters.

It should also be noted that Google Drive will not work with browsers Chrome 23, Firefox 23, IE9, Safari 6 or earlier. You will need to update your browser in order to use Drive.

0
source

I also had this problem. One thing that I discovered is that this does not happen when using the private browsing mode, so it is associated with one of the cookies that Google stores in your browser. When I cleared all cookies, the images loaded perfectly. The same behavior for mobile safari.

0
source

All Articles