I've a column in database containing the IDs of the files uploaded using a managed file form field.
How do I create a link to the uploaded file knowing its file ID?
EDIT : The obvious solution doesn't work for me , i'm using another table where i put my Fids .
this is the warning i got everytime : Notice: Trying to get property of non-object in Affichage_form() (line 188 of C:\wamp64\www\Gestion_tickets_licences\sites\all\modules\Recherche\Recherche.module). << 188 : $uri= $file->uri; >>
Solution : Thank you for you help . my solution for my problem is , Once I upload the file , I create the url. Instead of saving Fid , I save the url , It worked .For the download link , I used Alen syntax and it worked great .