<input type="file" name="upload[]">
if(theForm.['upload[]'].value == "") { alert("Escoja un archivo"); return(false); } return (true);