I need to validate image dimension to only allow image that meets required dimension to be used for upload. I’m not aware of such validation available in Wappler but I googled and found tut on how to achieve it using php and javascript. I think it’d be too complicated for me to integrate that script with Wappler’s validation.
Is there any idea how can I achieve it using Wappler’s build in functions without having to resort external resources?
Hello,
You can do this in your server action and using a condition if the loaded image width > XXXpx && height > YYYpx.
If the condition is met - do the insert and any other actions required, otherwise return an error message/status.