Guest User

Untitled

a guest
May 20th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. fd = new FormData();
  2. fd.append("meeting.wav", audioBlob);
  3. $.ajax({
  4. method: 'POST',
  5. url: _config.api.invokeUrl + '/meeting',
  6. headers: {
  7. Authorization: authToken
  8. },
  9. data: fd,
  10. processData: false,
  11. contentType: false}).done(completeRequest).fail(
  12. function(jqXHR, textStatus, errorThrown) {
  13. console.error('Error: ', textStatus, ', Details: ', errorThrown);
  14. console.error('Response: ', jqXHR.responseText);
  15. alert('An error occured:\n' + jqXHR.responseText);
  16. });
Add Comment
Please, Sign In to add comment