Skip to Content
0
Former Member
May 27, 2014 at 09:57 AM

How to send additional parameters with file upload

1995 Views

Hi,

When I upload a file, using SAP GW, de "data" parameter is fileld with the file. However, I'd like to send additional info with the post method.

In the backend the "create_stream" method is called, and I noticed there is an import parameter "IT_KEY_TAB", so it must be possible to send some additonal parameters with the request.

In short: is there anyone who can tell me how I can add a parameter e.g. "Guid" in this post method:

jQuery

.ajax({

type : 'POST',

url : "xxx/sap/opu/odata/sap/ZK_MOBILE_SERVICEDESK_SRV/Files",

headers : oHeaders,

cache : false,

contentType : false,

dataType : "json",

processData : false,

data : file,

success : function({}),

...


Thanks,


RW