The queuecomplete event gets fired whether the file(s) were uploaded or not to the site. So, if @@fileUpload fails for whatever reason, the showUpload = false; line gets called and the upload panel gets closed, with no indication that an error occurred.