I'm using the following code to validate a user uploaded file :
a!gridRowLayout( id: ri!index, contents: { if( ri!index > ri!oldAttachments, a!fileUploadField_17r1( label: "file upload " & ri!index, target: ri!target, value: ri!attachments[ri!index], saveInto: ri!attachments[ri!index], validations:{if(or(find("JPG", a!fileUploadField(value: ri!attachments)),find("JPEG", a!fileUploadField(value: ri!attachments)),find("PNG", a!fileUploadField(value: ri!attachments)),find("ICO", a!fileUploadField(value: ri!attachments)),find("GIF", a!fileUploadField(value: ri!attachments)),find("BMP", a!fileUploadField(value: ri!attachments)))>0,"Invalid Format",{}
) }
...
but it gives an error in a!for Each() while uploading another file
Discussion posts and replies are publicly visible
HI Eliot Gerson, Hope you are doing good. my question is nearer to your solution but am unable to open the docs you have shared can you share it again if possible. Thanks in advance
Thank you @Mathieu
For future reference, the links are usually unchanged but you just have to point to the correct version. If you find a really old post like this, just change the version number (17.4 in the link above) to a more recent version (e.g. 23.2) and it should work!