File Metaobject on Tech Page

Hello,

I’m trying to make a set of tech pages that each houses a PDF using metaobjects. I’ve made the metaobject custom.tech_pdf as a file upload and I’m trying to get it to display a button to be able to be downloaded. Here’s what I have on the page
<a href="https:{{ custom.tech_pdf | file_url }}" target="_blank">Download File</a>

It doesn’t seem to be pulling in the file I have added to the page. Here’s the link the above created:
https://longacreracing.myshopify.com/cdn/shop/files/?309

Here’s the page: Brake Bias – Longacre Racing

Hey - I’ve just checked the page, and the link you’ve created appears to be opening the PDF, so it looks like you’ve figured this out?

Yes! After much much trial and error and seeing a Youtube video doing something entirely different, but along the same lines, I figured it out. Thanks for the reply!

1 Like