Alexander Roidl 2 years ago
parent d3b5bc2297
commit cb17ab7c1a

@ -100,7 +100,7 @@ function record_audio(){
document.getElementById("audio-player-container").innerHTML = sound.outerHTML; document.getElementById("audio-player-container").innerHTML = sound.outerHTML;
let file = new File([audioBlob], "audio.ogg",{type:"audio/mpeg"}); let file = new File([audioBlob], "audio.mp3",{type:"audio/mpeg"});
let container = new DataTransfer(); let container = new DataTransfer();
container.items.add(file); container.items.add(file);
document.getElementById("uploadedFile").files = container.files; document.getElementById("uploadedFile").files = container.files;

Loading…
Cancel
Save