更新时间:2023-12-05 21:44:52
<input name="uploadedfile[]" id="uploadfile" type="file" multiple="true" />
在javascript
中
In javascript
if(document.getElementById("uploadfile").files.length < 1)
{
alert("You Forgot to select an image");
return false;
}
试试看,这可能会有所帮助.
Give it a try, This may help.