Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Fileupload not working in Chrome

$
0
0

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:

Capture.PNG

prevent_xsrf is set to false, so that can't be the problem.

 

Any ideas?

 

Greetings,

Jan


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>