I am able to display file with url: For example
echo '<a href="'.$file_url.'" target="_blank">'.$path_parts['basename'].'</a>';
How can I make this file downloadable? In case of pdf files, it is not downloading and opening in new tab as i have added target.