currently, multiple file uploads are required. If three files are uploaded, then upload asynchronously, one file at a time plus a unique ID.
but at present, according to the saying on the Internet, it is written like this
<form id= "uploadForm" action= "" method= "post" enctype ="multipart/form-data">
<input type ="file" name="file[]" id="file" multiple="multiple"/><a href="javascript:;" id="add">[+]</a>
<input type ="button" value="" id="but"/>
</form>
//
$("-sharpbut").click(function(){
var formData = new FormData($( "-sharpuploadForm" )[0]);
})
the printed formData is an empty object that cannot be traversed. Please give us some advice on what to do
.