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
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 ), """", "" ) } ) );
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
WarrenBelz
78
Most Valuable Professional
MS.Ragavendar
42
mmbr1606
41
Super User 2025 Season 1