Bind the submit function on a button and force a click after your ajax request:
$('#logo-upload').fileupload({
dataType: 'json',
maxNumberOfFiles: 1,
autoUpload: false,
add : function(e,data){
$("#uploadButton").on("click",function(){
data.submit();
})
}
}).on('fileuploadsubmit', function(e, data) {
console.log(data);
});
$.ajax({
url: url,
data: data,
type: "post",
dataType: "json",
success: function(response) {
if( response && response.location != undefined ) {
$("#uploadButton").click();
}
}
});