I'm using an 'add picture' control to allow users to change their profile picture in my app, however it appears that there is a limit of 4MB for a profile picture. That's fine, but how I do deal with that in terms of preventing users from uploading larger files? If you try to upload an image larger than 4MB, there is an error message on the formula for the button, but is there any way to convey that to the user so they know it hasn't worked?
I can't seem to find a way to show error messages or disable the save button if the attached file size is too large, as the file size isn't a property I seem to be able to call upon. I've looked into the IfError function, but not entirely sure how to get it to work if that's what I'm looking for.
Solved! Go to Solution.
You can try the ErrorInfo function.
IfError( ...... , Notify( "Internal error: " & ErrorInfo.Control & "." & ErrorInfo.Property ) )
See documentation here: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-iferror
Thanks @jbrit2020 , unfortunately no luck with that. The formula never produces the notification, it just errors on the upload but never seems to proceed onwards to the point where the notification is displayed. As far as I can tell, my implementation would be correct.
Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.
Did you miss the call?? Check out the Power Apps Community Call here!
ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.