function ajaxFileUpload(mode) { var fupl = \'fileToUpload\'; var fileName = $(\'#fileuploadbrand\').val(); if (fileName == "" || fileName == nu