aTKn94 adlı üyeden alıntı: mesajı görüntüle
<input name="image[]" id="image" type="file" multiple="multiple" accept="image/jpg, image/jpeg" >
<script> $("#image").on("change", function() {
 if($("#image")[0].files.length > 2) {
 alert("You can select only 2 images");
 } else { $("#imageUploadForm").submit();
 }
 }); </script>
Ben mi yapamadım acaba aynen aldım form içine ekledim formun id değeri imageUploadForm
50 tane seçtim hepsini seçip post ettirdim etti. Etmemesi gerekiyordu