I must be being ‘thick’ have the widget opening using a custom button - that works, the widget uploads the files, that works, but I just cannot see/get how to get the new file name.
What I have is:
document.querySelector(’#frm-profile-setup [data-id=“photoURL”]’).addEventListener(‘click’,function(){
uploadcare.openDialog(null,{
publicKey:‘XXXXXXXXXXX’,
imagesOnly:true,
crop:‘300x300’
})
})
Now how do I get the ‘new’ file name when the upload is complete, I need this to update a database
I am 100% sure it’s very simple, so as said I am being ‘thick’ - Oh I’m not using jQuery