$cordovaFileTransfer doesn’t use native $http, so I can’t get a current session id. I can’t even work with Ionic proxy. I also can’t get jsessionid from $cookies.
What can I do with that? I need a sessionId when I do post/ upload file to server.
hi try this
var Options = {
params:{
session_id:######,
param2:#####
},
headers:{
'AUTH':######
},
};
$cordovaFileTransfer.upload(URL,DATA, Options)
.then(function(result) {
// success
}, function(err) {
// Error
}, function (progress) {
// constant progress updates
});