Help get this topic noticed by sharing it on Twitter, Facebook, or email.

How to write business rule for image/picture/blob check controls before saving image?

I have a wizard and in one step I need to upload a photo. I have used tutorial for blob file system adapter (only using virtual fields for File, FileName, ContentType and Length because I don't need this data in database table).

After setting "Changing of the field value causes "Calculate" command to execute" for File field and creating business rule for Custom, Execute I am able to enter this method after choosing picture. BUT - in instance model there are no values for File, FileName, ContentType and Length.

How can I get these values to be able to make some checks on image (size, height, width, etc.)? Is it possible via c# business rule?

Thanks in advance!
1 person has
this question