AnsweredAssumed Answered

Alfresco ADF 2.4 Upload Interceptor and OnCreateNode Behavior

Question asked by calin.chiper on Aug 9, 2018

Is it possible to send new properties/ data through the (beginUpload) Angular event handler from the Alfresco ADF and to catch them into a OnCreateNode Event?

 

Intercepting the upload:

alfresco-ng2-components/upload-drag-area.component.md at development · Alfresco/alfresco-ng2-components · GitHub 

 

I've tried to attach data like that:

onBeforeUpload(event: UploadFilesEvent) {
   event.pauseUpload();
   event.files[0].options.comment = 'hello'; // Setting the data 
   console.log(event.files[0]);
   event.resumeUpload();
}

Outcomes