Hide upload button and file upload when offline