Last active
August 29, 2015 14:02
-
-
Save derrickwilliams/7390bd8e33aec336c0f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var input = new mOxie.FileInput({ browse_button: '#filePicker' }); | |
var formData = new mOxie.FormData(); | |
input.bind('change', function(e) { | |
formData.append('myFile', e.target.files[0]); | |
var xhr = new mOxie.XmlHttpRequest(); | |
xhr.open('POST', 'http://localhost:3000', true); | |
xhr.send(formData); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment