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 = ''; } /**