To add an “Upload Succeed” message, subscribe to the onUploadComplete
event. E.g.:
const widget = uploadcare.Widget("[role=uploadcare-uploader]");
widget.onUploadComplete((info) => {
// Handle uploaded file info.
console.log('Upload Succeeded!');
});
For more information, see JS API docs.