I am creating a web where you can upload mp3 files through file dialog, but I don't know how to tell the web to play that sound the user uploaded (?
function importData()
{
let input = document.createElement('input');
input.type = 'file';
input.onchange = e => {
// you can use this method to get file and perform respective operations
var file = e.target.files[0];
console.log(file.name);
}
}