03-05-2024 10:57 AM - edited 03-05-2024 12:18 PM
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
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.