Use files[] into <input> name attaribute
<input type=”file” id=”file” name=”files[]” multiple=”multiple” accept=”image/*” /> We also need to give file input type file name with box breaks like files[] and need to add a property named multiple. Here accept is an optional property that used to allow users to upload only image files.