fixed file upload button conditions