Set attachToForm: true (or formId: '...') and the uploader walks up to the
nearest <form>, intercepts its submit, runs pending uploads, then re-submits.
Combine with wholePageDrop: true so users can drop files anywhere on the page.
Try it: drag a file from anywhere on the page (or click Browse), then click Submit form.
The uploader holds the submission, uploads, then lets the form post.
Configuration
AjaxUploader.create('#uploader', {
attachToForm: true, // or formId: 'myForm'
wholePageDrop: true, // drop anywhere on the page
onFormSubmitBlocked: function (reason) {
console.log('submit blocked:', reason);
}
});