cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CAP Attachment Handling

GowthamRaja
Participant
0 Kudos

Hi Experts,

I am working on attachments handling in CAP. i can able to upload and download the files from UI in view.xml using UploadSet control.

My scenario is changed now. I have to attach a file from my webapp folder for uploading in controller level without using view.xml

I tried setting the url of the file location like below

this.byId("uploadset").setUploadUrl("path of the fille from webapp folder")

this.byId("uploadset").setUrl("path of the fille from webapp folder")

after writing the above code, i am triggering AfterItemAdded method where i could not see "item" in the mParamerter inside the oEvent.

I tried using 

this.byId("uploadset").additem

this.byId("uploadset").uploadItem

but no luck.

How to attach a file for upload in controller level.

Please help.

 

Thanks,

Gowtham

 

Accepted Solutions (0)

Answers (0)