Created
May 30, 2015 17:33
-
-
Save code-for-coffee/ee0f7c599cd70f2bd76f to your computer and use it in GitHub Desktop.
update-form event
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
// prevent our form from submitting via POSTBACK | |
$(form).on('submit', function(event) { | |
event.preventDefault(); | |
var fileAsBase64 = convertToBase64($(fileInput).prop('files')[0]) | |
// now, you can sent your file over via an $ajax call! | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment