Remove and adding again a same file in single mode #1114

Open
opened 2019-10-18 14:50:13 +00:00 by ltisistemas · 1 comment
ltisistemas commented 2019-10-18 14:50:13 +00:00 (Migrated from github.com)

After removing a file in single file mode, the component will not let you insert it again. To perform this action, you need to add another file to add the removed file again. This bug is reflected only in single mode, in multiple mode, this action can be performed normally.

After removing a file in single file mode, the component will not let you insert it again. To perform this action, you need to add another file to add the removed file again. This bug is reflected only in single mode, in multiple mode, this action can be performed normally.
aksenovdev commented 2019-11-07 04:02:53 +00:00 (Migrated from github.com)

Hi, if I understand you correctly, you can fix it by clear value of input element
Something like this:

@ViewChild('input', { static: true }) input: ElementRef;

uploader.onAfterAddingFile = () => {
    this.input.nativeElement.value = '';
}
Hi, if I understand you correctly, you can fix it by clear value of input element Something like this: ``` @ViewChild('input', { static: true }) input: ElementRef; uploader.onAfterAddingFile = () => { this.input.nativeElement.value = ''; } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#1114