Skip to main content

Hi, 


Is there a way to show the content picker in a seprate window like modal via javascript?  i want to integrate it in my application to download files from content picker. i have completed Oauth authentication and get access token but unable to open Content picker in new window. and also using npm i am unable to access content picker. using via CDN like this



const { FilePicker } = window.Box;

constfilePicker=newFilePicker({

container:'.file-picker-container',

clientId:Client_id,

token:accessToken,

chooseButtonLabel:'Select Files',

selectType:'file_and_folder',

onSelected: (items) => {

console.log(items);

},

});

filePickerRef.current=filePicker;

unable to open content picker screen and also suggest how can i download file from it


Thanks in advance,

Be the first to reply!

Reply