var data = new FormData();
jQuery.each(jQuery('#uploadimage')[0].files, function(i, file) {
data.append('file-'+i, file);
});
var data = $('#example-form').serializeArray();
jQuery.each(jQuery('#uploadimage')[0].files, function(i, file) {
data.push('file-'+i, file);
});