Form Auto-Attach + Whole-Page Drop Target

Demo uploads land in a temporary store and are swept after 60 minutes. To keep files, handle FileUploaded — see Single File for the complete save pattern.
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.

What you should see: a custom drop target combined with a form flow - drop anywhere in the marked area and the file attaches to the form's upload.

 
 
 
Configuration
AjaxUploader.create('#uploader', {
 attachToForm: true,            // or formId: 'form1'
 wholePageDrop: true,           // drop anywhere on the page
 onFormSubmitBlocked: function (reason) {
  statusEl.textContent = 'Submit blocked: ' + reason;
 }
});