Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 7OzEhybDL/CkorDMTWpmWo
Power Apps - Building Power Apps
Answered

Unable to display Onedrive/google drive image in Canvas App

Like (0) ShareShare
ReportReport
Posted on 6 May 2021 12:08:06 by

I wish to know that how can I display images within a shared google drive/one drive link into a Canvas app gallery. It seems that Image control doesn't like the URLs from google drive or one drive.

for e.g. this link: https://1drv.ms/u/s!AivSoBoEptbwkss5S1xfbGVnAvqzfg

& this one: https://drive.google.com/file/d/1YB5Y0Rr3jpP1SqX7SIfBybHtqcwdGyVO/view?usp=sharing

 

When I set these links on the Image property of an image control, it just shows nothing:

Tem1603212212_0-1620302653987.png

If I set some other public URL, it works fine.

 

Tem1603212212_1-1620302728901.png

All the articles that I have read so far, only point to using Sharepoint or Onedrive for business (Also Sharepoint..and a very poor name to call it onedrive by microsoft). Can anyone please help.

  • Verified answer
    Community Power Platform Member Profile Picture
    on 10 May 2021 at 07:24:39
    Re: Unable to display Onedrive/google drive image in Canvas App

    ok, I found out the solution..at least to show the images from google drive:

    The URL from google drive must be of the form:

    1. https://drive.google.com/uc?id=ID

    The ID is the unique ID for each file generated by Google drive, you can get it by the flow and also by manually clicking the share file

     

    2. Also the link must be available for access to anyone without any restriction.

     

    When conditions 1&2 are met the google drive images can be successfully displayed in the gallery.

  • Community Power Platform Member Profile Picture
    on 07 May 2021 at 10:28:58
    Re: Unable to display Onedrive/google drive image in Canvas App

    @zmorekyour recommendation unfortunately doesn't address the business problem that I have. I don't want to take images and show them immediately afterwards.. that's a bit meaningless. Let's say I am a building inspector, upon each visit to a building, I take some photos that are related to this building. These are then stored in onedrive.

     

    Next time, I open the building details, I want to see the past photos attached to this building. It's very simple scenario but powerapp Image (also in gallery) control seems to be broken to handle this.

     

    Tem1603212212_0-1620383520835.png

     

     

  • zmorek Profile Picture
    3,272 on 06 May 2021 at 22:10:07
    Re: Unable to display Onedrive/google drive image in Canvas App

    You could consider uploading the images directly in the app and then collecting them, then using the collection to display the images.

  • Community Power Platform Member Profile Picture
    on 06 May 2021 at 19:25:00
    Re: Unable to display Onedrive/google drive image in Canvas App

    @MatthewInwardsThanks for the reply.

    Well these images are publicly accessible, as you can click the links that I provided and check for yourself. The images that I am going to store are for my personal use and taken by me. I don't want to use Sharepoint..since the images are taken by me and would rather be visible in Onedrive.

     

    I find it stunning that Powerapp fails to perform this native integration 😞

  • MatthewInwards Profile Picture
    138 on 06 May 2021 at 16:17:15
    Re: Unable to display Onedrive/google drive image in Canvas App

    In order to access the image, powerapps will require it to be in a publicly accessible place. Or in somewhere like sharepoint where the current user has access to it. Personally, I would recommend either storing them on a web server, or you can store them in google drive and update the permissions on where they are stored to be public.

     

    Just a word of warning, if these images are covered under any legislation such as GDPR etc, then you cannot have them somewhere that is accessible to the public. If they are requiring a secure storage location then I would recommend using a SharePoint photo library that is shared with all users of the app.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,089 Most Valuable Professional

Leaderboard
Loading started