Fix undefined filname

This commit is contained in:
mauriziovitale84
2016-09-20 14:44:42 +01:00
parent ce9d2d96c6
commit 8e29490e0f

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;
}
}