Skip to content

[upload] Add clearComplete method #1247

Open
@davidmaxwaterman

Description

@davidmaxwaterman

Please consider adding a clearComplete() method; this seems to work:

    clearComplete: function() {
      this.files = this.files.filter(function(file) { return !file.complete; });
    },

In my app, the vaadin-upload element is part of a dialog. I want to declutter the UI on subsequent open()s but removing the completed uploads (my theory is that the user will want to retry the failed uploads, but doesn't need to see the successful uploads).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions