Fix no link and image error in file detail view