Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var multipleWidget = uploadcare.MultipleWidget("[role=uploadcare-uploader]");
$ = uploadcare.jQuery; // skip this if you already have jQuery on the page
multipleWidget.onChange(function(group) {
if (group) {
group; // group object
group.files(); // array of file objects
$.when.apply(null, group.files()).then(function() {
arguments; // array of individual file infos
$.each(arguments, function() {
console.log(this.cdnUrl); // URL of uploaded file
console.log(this.uuid); // UUID of uploaded file
console.log(; // original filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.