OK, newbie question so pls. forgive.
Uploading is ‘easy’ click, open widget, click uploaded - simple …
On upload I call the new url into an tab - simple …
Now how can I either click that image to replace it (you can by clicking the image name) - uploadcare–link uploadcare–widget__file-name but for ‘my users’ that is not/would not be clear so …
How can I either click the image to trigger a replacement upload OR change the image name text to say ‘Replace’ or any other suggestion please …
var singleWidget = uploadcare.SingleWidget(’[role=uploadcare-uploader]’);
singleWidget.onUploadComplete(function(info) {
jQuery(’#photoURL’).attr(‘src’,info.cdnUrl);
});
If have tried:
var file = singleWidget.value();
if (file) {
file.cancel();
}
but nope not doing anything …
As said suggestions please