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 Apps / Can i check the Upload...
Power Apps
Unanswered

Can i check the Uploaded Image height and Width before uploading them to sharepoint list item attachment

(0) ShareShare
ReportReport
Posted on by 1,811 Super User 2024 Season 1

I have a canvas app and a sharepoint custom list. now i am attaching files to the list item attachment using the power apps attachment control inside a power apps form. now i am using those images to generate a PDF report, and the report will not render correctly if the uploaded images has a height or width larger 800 Pixels.. so is there a way to check the uploaded image height and width before uploading them to sharepoint through my attachment control inside my power apps canvas app? and prevent uploading images that have a height or width > 800 pixels ?

 

Thanks

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,040 Most Valuable Professional on at

    @johnjohnPter ,

    You can check the size of an uploaded file as per this blog of mine - you could set this at whatever size your image needs to exceed.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Meekou Profile Picture
    on at

    For getting image info like height and width, you may try to check whether there is any exist connector or you can try import custom connector Meekou Share Connector .

    Demo PowerApps get image info

    Set(
     ImageInfo,
     Meekou.ImageInfo(
     {
     imageBase64: Substitute(
     JSON(
     Image1.Image,
     JSONFormat.IncludeBinaryData
     ),
     """",
     ""
     )
     }
     )
    );
     

     

     

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard