Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 2.18 KB

File metadata and controls

33 lines (30 loc) · 2.18 KB
var ContentUploader = require('./ContentUploader').default;

<IntlProvider locale="en" textComponent={React.Fragment}>
    <ContentUploader
        features={FEATURES}
        rootFolderId={FOLDER_ID}
        token={TOKEN}
    />
</IntlProvider>

Screenshot

---

Props

Prop Type Default Description
token* string See the developer docs.
isTouch boolean See the developer docs.
language string See the Internationalization section
logoUrl string See the developer docs.
messages Map<string, string> See the Internationalization section
onBeforeUpload function(Array<File>) 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<File>) Callback function for when uploads are complete.
requestInterceptor function See the developer docs.
responseInterceptor function See the developer docs.
rootFolderId string 0 The root folder for the content uploader.
sharedLink string See the developer docs.
sharedLinkPassword string See the developer docs.