I expect the UploadCare dialog to open after clicking MyButton, showing the Twitter logo, but it doesn't. Why not?
$('#MyButton').on('click', function() {
uploadcare.openDialog('https://g.twimg.com/About_logoUsage.png');
return false;
});
I expect the UploadCare dialog to open after clicking MyButton, showing the Twitter logo, but it doesn't. Why not?
$('#MyButton').on('click', function() {
uploadcare.openDialog('https://g.twimg.com/About_logoUsage.png');
return false;
});
You need to pass a
file
object as an argument toopenDialog
method. You can obtain the file object by calling uploadcare.fileFrom method: