mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Merge pull request #774 from Alfresco/dev-mvitale-757-bug
Fix bug undefined filname
This commit is contained in:
@@ -43,6 +43,8 @@ export class UploadWidget extends WidgetComponent implements OnInit {
|
|||||||
this.field.value &&
|
this.field.value &&
|
||||||
this.field.value.length > 0) {
|
this.field.value.length > 0) {
|
||||||
this.hasFile = true;
|
this.hasFile = true;
|
||||||
|
let file = this.field.value[0];
|
||||||
|
this.fileName = file.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user