DEXTUploadX5Provider Properties
authKey
dextuploadx5-react 0.0.1 or later
Type
String
-
Description
The DEXTUploadX5 product authentication key string.
DEXTUploadX5Provider assigns this value to dextuploadx5Configuration.authkey so that the product script can initialize.
This value is required. If it is missing, Provider throws an error and does not load the product.
-
Example
<DEXTUploadX5Provider authKey={config.authKey}> {children} </DEXTUploadX5Provider>
fallback
dextuploadx5-react 0.0.1 or later
Type
React.ReactNode
-
Description
A React node rendered while the DEXTUploadX5 product script is not loaded yet.
Until loading completes, this value is rendered instead of children. If not specified, nothing is rendered.
-
Example
<DEXTUploadX5Provider authKey={authKey} fallback={<div>Loading DEXTUploadX5...</div>} > <UploadPage /> </DEXTUploadX5Provider>
productPath
dextuploadx5-react 0.0.1 or later
Type
String
-
Description
The base path from which the browser loads DEXTUploadX5 product files.
dextuploadx5.js is loaded relative to this path, and the trailing slash is normalized automatically if omitted.
If not specified, the default value is /dx5/.
If this path does not match the actual static file location, the product cannot be loaded.
-
Example
<DEXTUploadX5Provider authKey={authKey} productPath="/public/dx5/" > <UploadPage /> </DEXTUploadX5Provider>