Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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!
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement