def METHOD_NAME(self, file_name):
    if file_name.endswith('.doc') or file_name.endswith('.docx'):
        file_size = self.office_file_size
    else:
        file_size = self.file_size
    can_preview, error_msg = can_preview_file(file_name, file_size,
            self.encrypted_repo)
    return can_preview