var inputFile = document.getElementById('file').files; for(i=0; i < inputFile.length; i++){ var res = inputFile[i]; alert(res); }