function upload(blobOrFile) { var xhr = new XMLHttpRequest(); xhr.open('POST', 'saveaudio.php', true); xhr.onload = function (e) { var result = e.target.result; }; xhr.send(blobOrFile); }
<?php error_log('audio save called'); $blob = $_POST['thefile']; $filename = $_POST['filename']; $post_data = file_get_contents('php://input'); $filePath = 'video/doesitwork.wav'; file_put_contents($filePath, $post_data); ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)