2

I am using Francium voice recorder tool to record voice. When i click play button, below code is ran :

Fr.voice.export(function(url){
  jQuery("#audio").attr("src", url);
  jQuery("#audio")[0].play();
}, "URL");
restore();

on inspection i see audio element like below

<audio controls="" src="blob:https://example.com/33579f12-ee01-4dc2-9dda-82fb8d7d9307" id="audio"></audio>

Is there way to save this to a PHP server through <form> ?

Subin
  • 3,445
  • 1
  • 34
  • 63
gaurav
  • 237
  • 4
  • 16
  • Possible duplicate : http://stackoverflow.com/q/23511792/1372424 – Subin Sep 18 '16 at 14:21
  • hey no i checked they are different , please can u help me with it , issue is that i want to click play button and after then save to server get disabled – gaurav Sep 18 '16 at 14:24

1 Answers1

0

You can adapt something like:

var file = $('#yourFileInput').get(0).files.item(0);
$.ajax({ 
    type: 'POST', 
    url: 'yourUploadURL.php', 
    data: file, 
    contentType: 'application/my-binary-type',
    processData: false 
});
Leonard Lepadatu
  • 606
  • 8
  • 14