Is there any possibility to limit the maximum of files uploaded?
For example: I just want to allow 4 images to upload
This question has an accepted answers - jump to answer
Good question. I don't think there is actually! A validator could be used for it I think, but I presume this is a single field with one-to-many images? I've added a bug to get this feature into the next release of Editor.
Little update on this: in Editor 1.9 you'll be able to do:
->validator( 'permission.id', Validate::mjoinMinCount(1, 'User needs some permissions') )
->validator( 'permission.id', Validate::mjoinMaxCount(4, 'No more than four selections please') )
to perform validations on the number of items selected / uploaded.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.