The Box Content Uploader UI Element allows developers to embed an upload widget
in their desktop or mobile web application. Users can select files or use drag
and drop to upload. Large files will be uploaded with the API.
Installation
Box UI elements
either through NPM or the Box CDN.
Authentication
The UI Elements are designed in an authentication agnostic way so whether
you are using UI Elements for users who have Box accounts (Managed Users) or
non-Box accounts (App Users), UI Elements should work out of the box. The
reason for this is that UI Elements only expect a “token” to be passed in for
authentication, and Box provides two different ways to generate tokens - OAuth
and JWT.
Learn about selecting an authentication method
Demo
Uploader
Access TokenThese demos may not fully function until you provide a valid access token. For
testing purposes, you can use your temporary developer token. This will need
to be updated under the JS tab in the demo.
API
Parameters
Options
Modal Options
Events
Scopes
If your application requires the end user to only be able to access a subset of
the Content Uploader functionality, you can use to
appropriately downscope the Access Token to a resulting token that has the
desired set of permissions, and can thus, be securely passed to the end user
client initializing the Content Uploader.
Below are a set of UI Element-specific scopes to go alongside Downscoping. These
allow developers to enable/disable UI controls on the Content Uploader by
configuring the appropriate scopes on the downscoped token. To learn
more, see .
Base Scope
Sample Scenarios