Hi @Anonymous , This is a bit left-field, but it will work for you. On the OnChange property of your AddMediaButton (replace with your control name and also do the same for UploadedImage1 below)
Set(vImg,JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData))
If(
Len(vImg) > 1460000,
"Image size " too big",
<whatever you are doing now>
)
You can also put a label on top of the image control
Text(Len(vImg)*.00000073,"[$-en-US]##.##") & " Mb"
to show the size as soon as it is uploaded.
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.