Hi,
I am uploading a file to backend with the Header Parameters as mentioned below.
oFileUploader.addHeaderParameter(new sap.ui.unified.FileUploaderParameter({
name: "x-csrf-token",
value: this.oDataModel.getSecurityToken()
}));
oFileUploader.insertHeaderParameter(new sap.ui.unified.FileUploaderParameter({
name: "slug",
value: "Slug Value"
}));
oFileUploader.setUploadUrl(oUrl);
oFileUploader.setSendXHR(true);
if (oFileUploader.getValue()) {
oFileUploader.upload();
}
I am getting the data and everything works fine expect the slug parameter.
In the CREATE_STREAM the IV_SLUG is coming empty and I have checked all the client headers with the below mentioned code.
Still i didn't find the slug parameter value. Same problem with the custom headers also
DATA : lo_facade TYPE REF TO /iwbep/if_mgw_dp_int_facade,
lt_client_headers TYPE tihttpnvp.
lo_facade ?= /iwbep/if_mgw_conv_srv_runtime~get_dp_facade( ).
lt_client_headers = lo_facade->get_request_header( ).
i have checked the same thing(passed slug parameter in headers) from the gateway client it worked fine.
Can anyone help me to solve this issue?
I have attached the request headers screenshot.
Thanks & Regards,
Hari