Skip to main content

Notifications

Community site session details

Community site session details

Session Id : aiuZoAr2am0b2n4357b8d4
Power Apps - Building Power Apps
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 27 May 2024 23:45:00 by 1,548 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

  • Meekou Profile Picture
    on 28 May 2024 at 09:07:26
    Re: Can i check the Uploaded Image height and Width before uploading them to sharepoint list item attachment

    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
     ),
     """",
     ""
     )
     }
     )
    );
     

     

     

  • WarrenBelz Profile Picture
    147,341 Most Valuable Professional on 28 May 2024 at 00:36:08
    Re: Can i check the Uploaded Image height and Width before uploading them to sharepoint list item attachment

    @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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 367 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 193

#3
stampcoin Profile Picture

stampcoin 147

Overall leaderboard
Loading started