vaadin-upload cancel/retry buttons

How do i handle when user clicks the cancel button, “removing” the file after upload?