0
Использование Box filepicker в моем веб-приложении. Настраивается как показано ниже:Box WebApp Integration получает родительские данные выбранного файла
В моем HTML, добавлено:
<script src="https://app.box.com/js/static/select.js"></script>
и JS файл,
var options = {
clientId: myClientID,
linkType: 'shared',
multiselect: 'true'
};
var boxSelect = new BoxSelect(options);
// Register a success callback handler
boxSelect.success(function(response) {
console.log(response[0].id); //This is giving me the fileId of a selected file
console.log(response[0].id.parentNode); //Tried this to get parent (folder name associated to the selected file and gets undefined)
});
// Register a cancel callback handler
boxSelect.cancel(function() {
console.log("The user clicked cancel or closed the popup");
});
$scope.launchBoxFilePicker = function() {
boxSelect.launchPopup();
};
Может ли один из вас наставит меня о том, как получить родительские детали выбранного файл.