I was trying to find a html way to define maximum amount of files that can be selected by the input like this:
<div class="form-field">
<label for="images[]">{{t('label.images')}}</label>
<input type="file" name="images[]" multiple>
<p class="right-infobox">{{t('label.images-info')}}</p>
</div>
As you can see I'm using Laravel, but this does not matter in this case. The problem is, user can select as many images as he wants.
I would like to define it on the client side somehow without JavaScript. If I don't prevent it, this will eat my traffic with no reason and I will get rid of rest images anyway.