Attachment Uploader
Reference
- Standard component that provides File drop zone to upload files
Props
- isMultiselect : allow muliple file uploading its default value is false
- onFileSelect : handling on selecting file upload
Usage
const { protrakComponents } = React.useContext(customWidgetContext);
const { AttachmentUploader } = protrakComponents;
return(
<AttachmentUploader
onFileSelect={(files) => handleOnFileSelect(files)}
isMultiselect={true}
/>
);
UI