Integrate a file upload into step 2 of a multi-step wizard. Users must upload
a file before advancing to the final step.
What you should see: upload as one step of a wizard - the step only advances when the file finishes.
1. Info
2. Upload
3. Confirm
Upload your document:
All done! Your submission is ready.
// Step 2: upload required before proceeding
AjaxUploader.create(el, {
uploadUrl: '/ajaxupload.axd/upload',
autoUpload: true,
onTaskComplete: function (file) {
document.getElementById('nextBtn').disabled = false;
}
});