From fc93f89fe9012fe288929717da9c87170b001777 Mon Sep 17 00:00:00 2001 From: mauriziovitale84 Date: Thu, 2 Jun 2016 15:10:54 +0100 Subject: [PATCH] #125 reset file value --- .../src/components/upload-button.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts index 52f73dfeae..c23eee7aa8 100644 --- a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts +++ b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts @@ -107,6 +107,8 @@ export class UploadButtonComponent { let files = $event.currentTarget.files; this.printFileInfo(files); this.uploadFiles(this.uploaddirectory, files); + // reset the value of the input file + $event.target.value = ''; } /** @@ -134,6 +136,8 @@ export class UploadButtonComponent { } ); }); + // reset the value of the input file + $event.target.value = ''; } /**