Created
May 15, 2018 15:29
-
-
Save comma3/418fb22700d2938f96362fffac27e5e1 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
fd = new FormData(); | |
fd.append("meeting.wav", audioBlob); | |
$.ajax({ | |
method: 'POST', | |
url: _config.api.invokeUrl + '/meeting', | |
headers: { | |
Authorization: authToken | |
}, | |
data: fd, | |
processData: false, | |
contentType: false}).done(completeRequest).fail( | |
function(jqXHR, textStatus, errorThrown) { | |
console.error('Error: ', textStatus, ', Details: ', errorThrown); | |
console.error('Response: ', jqXHR.responseText); | |
alert('An error occured:\n' + jqXHR.responseText); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment