How to validate System.Filedocument entity if value is Image

0
Hi All,   Im new at Mendix I just want to ask how I can validate the value of system.filedocument is Image using Microflow
asked
1 answers
0

Hey Dalx,
 

you can get the Extension of the uploaded file by

substring($Attachment/Name,findLast($Attachment/Name,'.')+1)

Then you can check this extension to see if it is related to any of the image extensions, like "png or jpg"

 

answered