0
I am trying to validate the upload of a file , and the same should always be called new.mpg
, if not, the program will not work.
function validarNomeArquivo(){
//variavel que recebe o nome do arquivo
var oImg = "bgs/newFile.mpg";
//variavel para comparar o input
var x = document.getElementById('fileBgAtualHD').value;;
if(x==oImg){
alert("yes");
alert(x + " x yes ");
alert(oImg + " oImg yes ");
return true;
}
else{
alert("no");
alert(x + " x no");
alert(oImg + " oImg no ");
return false;
}
}
It worked man ! Thanks , ball show :)
– Paladin
Needing we are there! D
– user98628