Hi everyone, I follow the steps in the Uploading Files to SAP GW, Downloading Files from SAP GW - New Techniques and Upload Image to SAP Gateway and Display Image in UI5 - Using New Fileuploader with SAP Gateway.
I want to pass many arguments to create_stream via slug parameters?
I use the following code in SAPUI5.
var oFileUploader = new sap.ui.unified.FileUploader({ uploadUrl : "/sap/opu/odata/sap/ZFILE_UPLOAD_TEST_SRV/UserCollection('"+ "burak.oral" +"')/Photo", name: "simpleUploader", uploadOnChange: false, sendXHR: true, maximumFileSize : 1, useMultipart: false, headerParameters: [ new sap.ui.unified.FileUploaderParameter({name: "x-csrf-token", value: sap.ui.getCore().getModel().getHeaders()['x-csrf-token'] }), ], uploadComplete: function (oEvent) { var sResponse = oEvent.getParameter("response"); if (sResponse) { oUploadDialog.close(); sap.ui.commons.MessageBox.show("Return Code: " + sResponse, "Response", "Response"); } } });
How to do pass paramater for above code.
Best Regards,
Burak Oral