UNPKG

metadata-based-explorer1

Version:
34 lines (30 loc) 2.23 kB
### Demo ([Documentation](https://developer.box.com/docs/box-content-uploader)) ```jsx var ContentUploader = require('./ContentUploader').default; <IntlProvider locale="en" textComponent={React.Fragment}> <ContentUploader features={FEATURES} rootFolderId={FOLDER_ID} token={TOKEN} /> </IntlProvider> ``` ### Screenshot <img src="https://user-images.githubusercontent.com/1075325/27887153-09243762-6194-11e7-8d2d-cf654d9364bc.png" style="border: 1px solid #e8e8e8" width="600" /> --- ### Props | Prop | Type | Default | Description | | --- | --- | --- | --- | | token* | string | | *See the [developer docs](https://developer.box.com/docs/box-content-uploader#section-options).* | | isTouch | boolean | | *See the [developer docs](https://developer.box.com/docs/box-content-uploader#section-options).* | | language | string | | *See the [Internationalization](../README.md#internationalization) section* | | logoUrl | string | | *See the [developer docs](https://developer.box.com/docs/box-content-uploader#section-options).* | | messages | Map<string, string> | | *See the [Internationalization](../README.md#internationalization) section* | | onBeforeUpload | function(Array&lt;[File](https://developer.box.com/reference#file-object)&gt;) | | Callback function for retrieving an item before it has uploaded on files only, doesn't work on folders| | onClose | function | | Callback function for when the close button is pressed. | | onComplete | function(Array&lt;[File](https://developer.box.com/reference#file-object)&gt;) | | Callback function for when uploads are complete. | | requestInterceptor | function | | *See the [developer docs](https://developer.box.com/docs/box-content-uploader#section-options).* | | responseInterceptor | function | | *See the [developer docs](https://developer.box.com/docs/box-content-uploader#section-options).* | | rootFolderId | string | `0` | The root folder for the content uploader. | | sharedLink | string | | *See the [developer docs](https://developer.box.com/docs/box-content-uploader#section-options).* | | sharedLinkPassword | string | | *See the [developer docs](https://developer.box.com/docs/box-content-uploader#section-options).* |