Configuring CldUploadWidget
Basic Props
Prop | Type | Example | |
---|---|---|---|
signatureEndpoint | string | /api/sign-cloudinary-params.js | More Info |
uploadPreset | string | my-upload-preset | More Info |
signatureEndpoint
An API endpoint used to sign the parameters generated during upload.
Find an example of generating a signature on the Signed Uploads page.
Or learn more about generating signatures on the Cloudinary docs.
uploadPreset
Learn more about upload presets on the Cloudinary docs.
Events
Upload Widget events allow you to tap into different points of the upload lifecycle including when an upload has completed, but also when it starts the queue and more.
CldUploadWidget supports all native events emitted from the Upload Widget the component wraps. The full list of events can be found on the Cloudinary Upload Widget API reference.
In order to trigger a function based on an event, an event listener can be attached to the widget.
All events follow the same pattern:
Where <event>
is based on the name of the event found in the Cloudinary documentation.
The Custom Event will include a details property which allows for access of the event information including results, such as the uploaded resource when listening to the success event.
Name | Type | Description |
---|---|---|
event | string | Event name. |
info | string | object | undefined | Result or details of the event. |
UploadWidget | CloudinaryUploadWidget | Upload Widget instance. |
Advanced
Configuration
Prop | Type | Default | Example | |
---|---|---|---|---|
config | object | - | { url: { cloudName: 'spacejelly' } } | More Info |
options | object | {encryption: {...}} | More Info |
config
Allows configuration for the Cloudinary environment.
Examples
options
Parameters used to customize and configure the Upload Widget instance. These options are passed in
directly to the Upload Widget, exposing all available parameters through the options
object.
Learn more about Upload Widget parameters on the Cloudinary docs.