Javascript Box WebApp集成获取所选文件的父级详细信息

Javascript Box WebApp集成获取所选文件的父级详细信息,javascript,box-api,box,Javascript,Box Api,Box,在我的web应用程序中使用Box文件选择器。配置如下: 在我的HTML中,添加了: <script src="https://app.box.com/js/static/select.js"></script> 你们中的任何人都可以指导我如何获取所选文件的父级详细信息。通过设计,文件的父级详细信息不会通过Box文件选择器公开 var options = { clientId: myClientID, linkType: 'shared', multisele

在我的web应用程序中使用Box文件选择器。配置如下:

在我的HTML中,添加了:

<script src="https://app.box.com/js/static/select.js"></script>

你们中的任何人都可以指导我如何获取所选文件的父级详细信息。

通过设计,文件的父级详细信息不会通过Box文件选择器公开

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();
};