same file select angular second time not selected
@ViewChild('fileInput') fileInput: any;
...
uploadFile() {
this.uploader.uploadAll();
this.fileInput.nativeElement.value = '';
}
0
0
<input #fileInput id="file" type="file" ng2FileSelect [uploader]="uploader" (change)="uploadFile()"/>
Thank you!
0
0
Are there any code examples left?
New code examples in category Javascript