async-form

XHR forms w/ iFrame fallback.

var aform = require('async-form');
 
document.getElementById('my-file').addEventListener('change', function (e) {
    aform(e.target);
});
npm install async-form --save-dev

require in your clientside scripts and browserify on medium heat.

Provide an easy interface for sending form data asynchronously.