Problem with "Maximum limit of files" code snippet

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?

Hi,

We checked this issue from our side, and it seems okay. Please provide more details regarding this issue (e.g., your actions step by step with screenshots, screencast, etc.). This will help us to reproduce and resolve the issue faster.