I was trying to get names of all the files being browsed through file input.
For a single file I know this :
var validfile=document.forms["filesharing"]["file"].value;
But problem is what if i have multiple files browsed ?
HTML :
<form method=post action="stegnographyonshares" enctype="multipart/form-data" onsubmit="return formvalidations()" name="filesharing">
<input type="file" name="file" value="file" id="file" multiple="multiple"/>
</form>