I am trying to implement file uploader in angularJS
but with a condition that if input file is empty it should give a massage.
I used following code:
if(var inputFileLength=document.getElementById("#id").value==0)
alert ("input file is empty");
But it is not working. So please give some solution for the same.