Forum Moderators: open
.on('complete', function (event, id, uploadName, responseJSON) {
// blah blah blah
}); 0||image_0.jpg||image_0_uuid|:|1||image_1.jpg||image_1_uuid|:| $('#form').append('<input type="hidden" name="uploadName_' + id + '" value="' + uploadName + '">');
$('#form').append('<input type="hidden" name="uuid_' + id + '" value="' + responseJSON['uuid'] + '">');
$("#form").submit( function(eventObj) {
$('<input />').attr('type', 'hidden')
.attr('name', "uploadName_" + id)
.attr('value', uploadName)
.appendTo('#form');
$('<input />').attr('type', 'hidden')
.attr('name', "uuid_" + id)
.attr('value', responseJSON['uuid'])
.appendTo('#form');
return true;
});
name="uploadName_' + id +'"
{
'_id':001,
'uploadName': 'Some_Name',
'uuid': Some_uuid'
}