Skip to main content
Nintex Community Menu Bar

Validating an image dimension

  • October 17, 2021
  • 2 replies
  • 20 views

HI

 

Can i validate in k2 rule an image that was uploaded to a form , type of jpeg , by asking about the image's dimension (i need to accept only image that itwis 80x80).

 

thank you very much

2 replies

Forum|alt.badge.img+10
  • Nintex Employee
  • October 18, 2021

Hi Sarita,

 

I'm not sure if there is an existing out-of-the box feature for this scenario. Perhaps, you can inject a javascript via data label to get the correct image width/height. After that, you can apply validation rule or show a message to notify the users.

https://www.tutorialrepublic.com/faq/how-to-get-original-image-size-in-javascript.php

 


  • Author
  • October 19, 2021

thank you