cancel
Showing results for 
Search instead for 
Did you mean: 

How to add form values as payload to UploadCollection POST request ?

VenkyM
Participant
0 Kudos

Hi all,

My Requiremnent:

When Click on "+" icon of UploadCollection , pick a file from local File Explorer and then a Dialog opens for selecting category of the file and when user clicks on confirm button of Dialog, File should upload along with selected category.

Problem:

I am not able to send the selected category as payload along with upload POST request which calls CREATE_STREAM in backend.

I tried adding Selected category as header parameter using addHeaderParameter(UploadCollectionParameter({name:"Type",value:"Selectedcategory"});

Note:

I have extended sap.m.UploadCollection control for setting property instantUpload="false" and changing Url dynamically using setUploadurl() in change event of UploadCollection control.

Any help will be appreciated.

Regards,

venkatesh.

Accepted Solutions (0)

Answers (0)