web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Image Control removes ...
Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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?

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at
    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! 🍻

  • Verified answer
    weslijones Profile Picture
    on at
    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard