Skip to main content

Notifications

Community site session details

Community site session details

Session Id : hSjfR/7kEhbcOvMOpCIyaR
Power Apps - Building Power Apps
Answered

Image Control removes everything after "key=" in Dropbox url.

Like (0) ShareShare
ReportReport
Posted on 29 Sep 2023 19:05:31 by

I have created an app that produces QR codes from Dropbox links using an external QR code API. The text output from the API is used as input to the "image property" of an Image Control. This generates a QR code image as expected. Dropbox links contain the text "key=" in the url (ex: https://www.dropbox.com/scl/blablabal?rlkey= ...?dl=0). This passes a code to Dropbox that allows the file to be viewed directly in the browser the link is opened in.

 

When I scan the QR code produced by the API directly the url opens as expected. The problem seems to occur when the QR code is rendered in the Image Control. When it is scanned and converted back to a url all the characters AFTER the text "key=" are removed (including the "=" sign). This also happens with any other url's containing the text "key=". Is there documentation on this property of Image Control or in Power Apps in general? I have looked and have not found anything yet. Is there a way to keep the characters after the text "key=" when creating a QR code using an Image Control so that the QR code renders properly?

  • Verified answer
    weslijones Profile Picture
    on 04 Oct 2023 at 15:25:28
    Re: Image Control removes everything after "key=" in Dropbox url.

    Hello SongYe

     

    Thanks for your suggestion. The goal of the app is to remove the need to manually make and save each QR code image.

     

    Here is the code I'm having the problem with. Paste this code into the "Image" property of an Image control. I have try this with 2 different API's quickchart.io and chart.googleapis.com.

     

    Using quickchart.io (include the quotes)

    "https://quickchart.io/qr?text=" & TextInput1.Text & "&size=" & Image1.Width & "&margin=1" & "&ecLevel=L" & "&format=svg"

     

    Using chart.googleapis.com (include the quotes):

    "https://chart.googleapis.com/chart?cht=qr"& "&chl=" & TextInput1.Text & "&chs=" & Image1.Width  & "&chld=L"

     

    The image control will display the QR code, but when it is converted back to text the information after "key" is removed.

    ImageQRtest.png

    BUT, I think I have found a solution :-)! Instead of using an Image control use a HtmlText control. Here is the code I have tested. This displays the QR code and when it is converted back to text the text information after"key" is also displayed. Paste this code into the "HtmlText" property of a HtmlText control.

     

    Using quickchart.io (include the quotes)

    "<img class='img-example' src='" & "https://quickchart.io/qr?text=" & TextInput1.Text & "&size=" & HtmlText1.Height & "&margin=1" & "&ecLevel=L" & "&format=svg" & "'>"

     

    Using chart.googleapis.com (include the quotes)

    "<img class='img-example' src='" & "https://chart.googleapis.com/chart?cht=qr"& "&chl=" & TextInput1.Text & "&chs=" & Image1.Width  & "&chld=L" & "'>"

     

    HtmlTextQRtest.png

  • SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on 29 Sep 2023 at 19:48:20
    Re: Image Control removes everything after "key=" in Dropbox url.

    Hi @weslijones 

     

    I can't really recreate the issue you have because your using a api. 

    But I tried to do it differently. 

     

    Via Adobe I created a QR code

    SpongYe_0-1696016803775.png

     

    I copied the URL

    SpongYe_1-1696016821548.png

     

    And added the url into my image  control

    SpongYe_2-1696016852484.png

     

    Scanning the QR just gives me the same URL entered in the beginning. 

     

    Hope this helps.


    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started