Hi all
I am currently trying to do a flat file upload in HANA with a SAPUI5 frontend. It's working quite well but not in chrome!
Here's the request script:
$.ajax({ url: "../services/check_access.xsjs?token=" + token }).done(function(data){ if(data != "true"){ sap.ui.commons.MessageBox.show("Login Timeout!\nPlease refresh page.", sap.ui.commons.MessageBox.Icon.INFORMATION, "Information"); }else{ var url = "../services/ProcessUpload.xsjs?type=" + type + "&token=" + token; var fileLoader = sap.ui.getCore().byId("FileLoader"); var fileName = fileLoader.getValue(); if(fileName == ""){ sap.ui.commons.MessageBox.show("Please choose a file.", sap.ui.commons.MessageBox.Icon.INFORMATION, "Information"); }else{ fileLoader.setUploadUrl(url); fileLoader.upload(); } } });
This works perfectly in Firefox, IE and Edge. Not in Chrome though. In chrome I have an error 403:
prevent_xsrf is set to false, so that can't be the problem.
Any ideas?
Greetings,
Jan