I have the following code:
function check Files()
{
if (jQuery.isEmptyObject($('#fileupload').files) == true){
changeStage1Class();
}
}
The code is checking if something is uploaded. When it's empty it returns "true". But even when there is a file uploaded it still returns "true". Is the code not working correctly?