Skip to main content

Upload

A widget for upload images/photos

  • props
PropertyDescriptionTypeDefault
stylestyle for containe of Uploadany-
statusshow different status of Selectsuccess | error | warning-
maxNumbermax number of images that user can uploadstring-
onChangecallback when file choosedfunction-
uploadMethodmethod of upload, need implement it by developer{label: string, value: string}[]-
uploadTextstyle of upload textstringUpload a photo
textStylestyle of upload textany-
includeBase64pick image content by base64booleanfalse
fileNameStylestyle of file nameany-
fileSizeStylestyle of file sizeany-
<Upload 
includeBase64
uploadMethod={(asset, uuid) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve({
url: getUrlFromAsset(asset),
uuid
});
}, 1000);
});
}}
/>

Upload