blueimp/jQuery-File-Upload — Issue #1060: Ajax before Sent
Author: tichris
Created: 2012-02-28 17:14:10+00:00
State: open

Hello,

I sought an answer to my problem but have found nothing in the topics covered here.
My problem :

Before start of downloading the first file, I want to execute a query with jQuery Ajax :

jQuery('#fileupload-editor').fileupload({
send: function (e, data) {
jQuery.post(url_script_ajax, {type_element:1}, function(data){
//succes - fail ..
},'json');
}
});

And get an id from the query and add it to the formData of fileupload.
The query is good but the script don't wait the end of Ajax Query and start the upload when I click the submit button.

How to manually launch the start downloads after the ajax request has executed ?

Thanks and sorry for my bad english.
Christophe