Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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