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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Saving Photos from Jot...
Power Automate
Unanswered

Saving Photos from Jot form, Please help!

(0) ShareShare
ReportReport
Posted on by 184

So I have a jot form with a section to upload photos.  I have it uploading to a SharePoint document library, but it fails to open the file saying it is corrupt or something.  If put the file in an email, in the flow, it shows up as a hyperlink that I can click on then go to the photo.  How do I save a photo from Jot Forms to a SharePoint document library?

I was thinking I could do it from a link right?  Here's the output of the photo's question: 

<a href="https://www.jotform.com/uploads/smhoward/210424701527143/4892084308716402717/IMG_1965.JPG" target="_blank" title="IMG_1965.JPG">IMG_1965.JPG</a>

How do I extract just the url?

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 Moderator on at

    You can get the URL with the expression:

    split(outputs('hyperLink'), '"')[1]

    Like this:

    Paulie78_0-1613404576285.png

    But in the case of your particular URL above that results in a 302 redirect, so you also have to capture that, then you can download the image

     

     

  • Salamander94 Profile Picture
    184 on at

    So how would I capture the 302 redirect?  Or is there really no way to do what I'm trying to do?

  • Paulie78 Profile Picture
    8,422 Moderator on at

    It can be done easily, but if you want to download the image, then you need Power Automate premium, as you have to use the HTTP action to get it. Do you have PA Premium?

  • Salamander94 Profile Picture
    184 on at

    Okay so I have solved this using the HTTP action.  However, what do I do if they add more than one photo?  I get more than one url at that point but with the "split" action I am only getting one url out of it.

  • Paulie78 Profile Picture
    8,422 Moderator on at

    Yes, then the split expression we used won’t be effective.

    You’ll have to split on the hyperlinks so you get each one, and then loop through each of them to download the images.

  • Salamander94 Profile Picture
    184 on at

    How do I get each hyperlink separated though?

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard