Blob is sound blob data.
var fd = new FormData();
fd.append('fname', 'test.wav');
fd.append('data', blob);
$.ajax({
type: 'POST',
url: 'upload.php',
data: fd,
processData: false,
contentType: false
}).done(function(data) {
console.log(data);
});
How to get "data" in upload.php?
<?php
//lets assume you are uploading an .jpg image
$filename = 'image.jpg';//<-- your filename and extension
file_put_contents($filename, $_POST['data']);
//now you have image.jpg