Uploader X Icon removal

Hi,

i would like to remove the X after a file was uploaded. I cant get it removed. Is this not possible?

(Background: I upload a file and safe it directly and show the content in another component, so the X is useless)

Tried to remove it using JS but had no success


 upload.getElement().addEventListener("upload-success", e -> {
        upload.getElement().executeJs(
            "setTimeout(() => {" +
            "  this.shadowRoot.querySelectorAll('[part=\"remove-button\"]').forEach(btn => btn.style.display = 'none');" +
            "}, 0);"
        );
    });

image

This CSS should do it:

vaadin-upload-file::part(remove-button) {
  display: none;
}