I am using the following snippet to send a wav file as a blob to the server which is written in PHP:
function upload(blob) {
var xhr = new XMLHttpRequest();
xhr.open('POST', '/upload.php', true);
xhr.onload = function (e) {
var result = e.target.result;
};
xhr.send(blob);
}
I am confused as to how I should handle the POST data on the server.