Not showing and/or removing file list from Upload component

When using the Upload component (i am using Vaadin Flow 13), a nice file list is shown below the “Upload” button with uploaded files.
This file list exists in the shadow dom (slot “file-list”).

Questions:

  1. Is it possible to suppress this list showing up? or set it invisible?
  2. (even better) is it possible to programmatically clear this list?

If so, how?

Hi Ronald,

This link might help you:

https://vaadin.com/forum/thread/17241527/how-to-clear-the-file-list-on-an-upload-component

Hi Martin.

Thanks, that did the trick!

I am using the answer of Youness Teimouri as base line and only report the non-successful / not processed files.