Skip to main content

Notifications

Community site session details

Community site session details

Session Id : fPFlb4ULh6S4Dwa9k8b88v
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,546 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
    146,932 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 78 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 42

#3
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

Overall leaderboard
Loading started