@action
    addFiles(filesToAdd) {
        this.files = uniqBy([
            ...filesToAdd,
            ...this.files
        ], 'name');
    }
/**
     * Add Files to the selection. Typically called by the component's embedded react-dropzone.
     * Files will be de-duplicated by name, with a newly added file taking precedence over any
     * existing file with the same name.
     *
     * @param {File[]} filesToAdd
     */
Add Files to the selection. Typically called by the component's embedded react-dropzone.
Files will be de-duplicated by name, with a newly added file taking precedence over any
existing file with the same name.


Add Files to the selection . Typically called by the component ' s embedded react - dropzone . Files will be de - duplicated by name with a newly added file taking precedence over any existing file with the same name .
@action
    addFiles(filesToAdd) {
        this.files = uniqBy([
            ...filesToAdd,
            ...this.files
        ], 'name');
    }
@ action addFiles ( filesToAdd ) { this . files = uniqBy ( [ ... filesToAdd , ... this . files ] , 'name' ) ; }
Add Files to the selection.
Add Files to the selection .