I use Dropzone.js to upload files to my server. I Create dropzones programmatically inside an existing form. My "url" parameter send the $_FILES array to my dropzone.php file who send the files submitted to cloudconvert to convert them to pdf file.
Dropzone refresh the initial page immediately after files are sent and do not wait for the running process in my dropzone.php ($process->wait();).
I can not find a way to force dropzone.js to wait until action is done.
ANy idea ?
As my dropzone form is inside another form, dropzone send the main form immediatly after file upload and do not wait for the dropzone verification process.
To prevent this, I allow the main form to be validated only if I click the submit button.