I have a radio button that lists file names from my google drive. I want to be able to select a file and download it to my local device using the download url. I am getting the download url using HTTP GET request using the ajax /jquery from the Drive API. Here is the success function which is inside my get request.
    success: function (data) {
                   console.log(data);
                   console.log(data.items[0].alternateLink);
                   $.each(data.items, function(key, value) {
                    
                    const uri = value.alternateLink;
                    var uri_dec = decodeURIComponent(uri);
                    
                    
                    $('ul').append('<li class="list-group-item"> <input type="radio" name="recording" id="recording" value="' +uri_dec+ '">  '+value.title+' </li>');
                    //$("ul").append("<li class=\"list-group-item\">"+value.title+"</li>");
                    console.log(uri_dec);
                    
                    document.getElementById("Decoded").innerHTML = uri_dec;
}}
 
     
     
     
    