title: Google Drive images in img src=webContentLink?
body: <p>Can I use images stored in Google Drive to be used in a website by the html,<code>&lt;img src="&lt;webContentLink&gt;" /&gt;</code> ? </p>
  
  <p>Where <code>&lt;webContentLink&gt;</code> is returned after a file is uploaded and is in the format, '<a href="https://drive.google.com/uc?id=" rel="noreferrer">https://drive.google.com/uc?id=</a><code>&lt;FILEID&gt;</code>&amp;export=download'</p>
  
  <p>I have a small website created for account users only. They can upload files to their google drive folder and this folder has permissions set to share with the accounts of the other users (specific people only). This is an ASP.NET MVC 5 website using the Google API Client Libraries for .NET.</p>
  
  <p>In Chrome and Firefox the images display fine, in IE and Safari they don't show and return a 302 status code. Sometimes if you view the image directly in a new tab and then refresh the web page it shows. It might also show if the folder permission is set to 'anyone with the link', but this isn't ideal.</p>
  
  <p>The documentation (<a href="https://developers.google.com/drive/v3/web/manage-downloads" rel="noreferrer">https://developers.google.com/drive/v3/web/manage-downloads</a>) says, 'If you want to allow a user to view a file directly in a web browser instead of through the API, use the webContentLink.' I understood this to be okay to use img src='' to display an image directly without the API, however it then goes on to say, 'You can either redirect a user to this URL, or offer it as a clickable link'.</p>
  
  <p>So can Google please confirm if 'webContentLink' can be used in img src='', or not and why it works in some browsers and not others? I've read many posts on this, some old, some more recent. If it's not to be used in img src I think it should be made clear in the documentation.</p>
  
  <p>Many thanks</p>