Hi everyone, I use the following snipped to limit the number of files a user can upload:
add_filter(
'hivepress/v1/models/listing',
function( $model ) {
$model['fields']['images']['max_files'] = 5;
return $model;
},
100
);
The problem is that this limitation does not work in case a user selects multiple files at once. It works only if you select a single file and upload one after another.
Do you have a solution for this?