Box as a first-class remote source

Pick files from Box

Box is a built-in remote source in v5.2. Configure your Box OAuth client ID once, then add 'box' to remoteSources. The browser opens a Box OAuth popup, lists the root folder, and forwards picked files into the server-side /import-url pipeline with a bearer token attached.

AjaxUploader.configureRemoteSource('box', {
    clientId: 'YOUR_BOX_CLIENT_ID',
    redirectUri: 'https://example.com/oauth/box/callback'  // optional, defaults to current page
});

AjaxUploader.create('#uploader', {
    remoteSources: ['box']
});