Skip to content

Instantly share code, notes, and snippets.

@comma3
Created May 15, 2018 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save comma3/418fb22700d2938f96362fffac27e5e1 to your computer and use it in GitHub Desktop.
Save comma3/418fb22700d2938f96362fffac27e5e1 to your computer and use it in GitHub Desktop.
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