I have got an input file upload , need to check which file is uploaded / if no file is selected by the client using jquery.
Testing for...
$('#file1')[0].files.length == 0
...is working for me in Chrome. The jQuery is actually not even necessary as the raw HTML element (returned by the [0] on the jQuery object) gives access to the files list.
[0]