Get path of uploaded file inside a Twig template I've created a teaser template like this node--type--teaser.html.twig.
Within that template I want to conditionally create a link to a file that was uploaded via the field field_pdf.

How do you extract JUST the path to the pdf in the template.

I've tried {{ file_url(node.field_pdf.entity.url.value) }} but that just brings back an empty path.

If thats not possible, is there a way to get a file path from the fid in twig?
Manage teaser Display : Change Format of your file field to Generic File From  admin/structure/types/manage/YouRContentType/display/teaser .
In your twig node--type--teaser.html.twig just print  {{ 
file_url(node.field_pdf.entity.uri.value) }} you will get the path to your file.
Note : As mentioned in comment it's uri Not url.