Form Auto-Attach + Whole-Page Drop Target

Submit the form - uploads run first, then the form is posted

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.


 
 
 
Configuration
AjaxUploader.create('#uploader', {
 attachToForm: true,            // or formId: 'myForm'
 wholePageDrop: true,           // drop anywhere on the page
 onFormSubmitBlocked: function (reason) {
  console.log('submit blocked:', reason);
 }
});