• Components
  • CldUploadButton
  • Configuration

CldUploadButton Configuration

Props

Prop NameTypeExample
onClickfunctionfunction (event) { }
onUploadfunctionfunction (error, result, widget) { }
optionsobject{ encryption: {...} }
signatureEndpointstring"/api/sign-cloudinary-params.js"
uploadPresetstring"my-upload-preset"

children are rendered "as is" inside of the <button> element if provided, otherwise, the button will include a label of "Upload".

The remaining props are spread onto the <button> element for full control of the UI.