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