Merge pull request #774 from Alfresco/dev-mvitale-757-bug

Fix bug undefined filname
This commit is contained in:
VitoAlbano 2016-09-21 09:45:04 +01:00 committed by GitHub
commit 54debc47a6

View File

@ -43,6 +43,8 @@ export class UploadWidget extends WidgetComponent implements OnInit {
this.field.value &&
this.field.value.length > 0) {
this.hasFile = true;
let file = this.field.value[0];
this.fileName = file.name;
}
}