//set fid to your file’s fid.
//we can get fid from file_managed table
$fid = 1;

//build a link to the file by loading the file object and generating from the uri.
$file_download_link = file_create_url( file_load( $fid )->uri );

Advertisements