I'm working on a screen where the user will create a record and in the end will add a file to upload.
To resolve this, I disabled the automatic upload and placed the upload on another button (which will be used to save the data and upload).
To do this upload I need the ID, result of the insert, so I do the insert and then I upload using the ID created.
However, when I try to upload through the "xxx" function the list of files to upload is empty.
Follow my code.
<kendo-upload #ParentUploadComp [saveUrl]="URL_ParentUpload" [autoUpload]="false" [restrictions]="UploadImageRestrictions" [multiple]="false" [removeUrl]="uploadRemoveUrl" [(ngModel)]="ImageParentFiles"></kendo-upload>
@ViewChild('ParentUploadComp') ParentUploadCompRef: any;ImageParentFiles: Array<FileInfo> = [];
this.ParentUploadCompRef.uploadFiles();
When I use the above code, the variable "ImageParentFiles" is coming null, and is not uploaded.
Anyone have any suggestions?