README.md

July 10, 2024 ยท View on GitHub

Demo (Documentation)

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

Screenshot

---

Props

PropTypeDefaultDescription
token*stringSee the developer docs.
isTouchbooleanSee the developer docs.
languagestringSee the Internationalization section
logoUrlstringSee the developer docs.
messagesMap<string, string>See the Internationalization section
onBeforeUploadfunction(Array<File>)Callback function for retrieving an item before it has uploaded on files only, doesn't work on folders
onClickCancelfunctionCallback function for canceling a file upload after click
onClickResumefunctionCallback function for resuming a file upload after click
onClickRetryfunctionCallback function for retrying a file upload after click
onClosefunctionCallback function for when the close button is pressed.
onCompletefunction(Array<File>)Callback function for when uploads are complete.
onProgressfunction(File)Callback function for when uploads are in progress.
onResumefunction(File)Callback function for resuming a file upload.
requestInterceptorfunctionSee the developer docs.
responseInterceptorfunctionSee the developer docs.
rootFolderIdstring0The root folder for the content uploader.
sharedLinkstringSee the developer docs.
sharedLinkPasswordstringSee the developer docs.