We have a PowerApps that allows the user to add the attachments using picture control and on click of submit all the attachments get patched to the blob storage.
The patch works fine for attachments with size up to 40mb, but on submission of large attachments i.e. >40mb the patch statement fails.
We also wanted a way to find the size of attachment uploaded using picture control in PowerApps.
Currently we tried to find the size of attachment using the below approach but that makes the app un-responsive and also the approach is very slow.
On the On Change property of your Add Media Button
Set(vImg,JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData))
If( Len(vImg) > 1460000, "Image size " too big", <whatever you are doing now> )
Text(Len(vImg)*.00000073,"[$-en-US]##.##") & " Mb"
to show the size as soon as it is uploaded.
Thanks in advance

Report
All responses (
Answers (