這是我的問題插圖代碼!我真正的項目是想要做多個上傳文件,但一次上傳不超過24個文件。 但我的問題是,文件上傳一次只發送20個文件,甚至超過20個文件上傳我想21如果我上傳21個文件,如果22得到22 ...等等!我該如何處理?總是得到20個甚至超過20個文件上傳?
<form action="sessions.php" enctype="multipart/form-data" method="POST">
<ul id="attachment_list">
<li><input type="file" name="attachments[]" class="carte-attachment" multiple></li>
</ul>
<input type="submit">
</form>
<script type="text/javascript">
$("#attachment_list").on("change",".carte-attachment",function(){
$('#attachment_list').append('<li><input type="file" name="attachments[]" class="carte-attachment" multiple></li>');
});
</script>
sessions.php