Мне нужно получить URL для создания iframe для загрузки файла.
Я пытался напечатать resp.data, но он не работает.
Workers.query({
"id": $scope.currentUser.uuid,
},
function(resp){
var iframe = document.createElement("iframe");
iframe.setAttribute("src", "myUrlHere");
iframe.setAttribute("style", "display: none");
document.body.appendChild(iframe);
},
function(resp){
alert('failed');
}
);