javascript多文件上传验证asp.net
问题描述:
javascript多文件上传验证asp.net
javascript multiple file upload validation asp.net
答
<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.