mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Create task/process attachment Compilation error (#2004)
This commit is contained in:
committed by
Eugenio Romano
parent
908e27a3ae
commit
375c014f82
@@ -50,10 +50,10 @@ export class ActivitiCreateTaskAttachmentComponent implements OnChanges {
|
||||
}
|
||||
|
||||
onFileUpload(event: any) {
|
||||
let filesList: File[] = event.detail.files;
|
||||
let filesList: File[] = event.detail.files.map(obj => obj.file);
|
||||
|
||||
for (let fileInfoObj of filesList) {
|
||||
let file: File = fileInfoObj.file;
|
||||
let file: File = fileInfoObj;
|
||||
this.activitiContentService.createTaskRelatedContent(this.taskId, file).subscribe(
|
||||
(res) => {
|
||||
this.success.emit(res);
|
||||
|
Reference in New Issue
Block a user