I'm adapting a drupal module to my need. It permit to upload a pdf to insert it into a node add form in an iframe to display the file. I've need also to insert a link to download the previous uploaded file.
I've read and try thousand of guide and documentation but nothing that work or adapt to my scope.
Is possible to find an easy way to create by code a download link?
$content = '<a href="'.$filelink.'">Download MB</a><br><br><iframe frameborder="0" width="800px" height="900px" src="'.$path.'"><p>'.$file_text.'</p></iframe>';
i need to create $filelink to start file download – Michele S Sep 24 '15 at 9:57