How to Get File URL in Shopify

Updated: July 28, 2021


Drive 20-40% of your revenue with AVADA
avada email marketing

If you want to find the URL link to a specific file, do not worry, Liquid has a filter that can help you to search a link quickly. Liquid in Shopify lets you do a lot of tasks to save time on uploading content on the website. The tutorial focuses on a method to get file url in Shopify.

Table of content

What is Liquid

Since 2006, Liquid has been the backbone language of Shopify and has been trusted by a lot of web developers. Liquid is one of the open-source template languages in Shopify. The template has been sold since 2006 and now become a good source for a lot of hosted website application such as Jekyll, salesforce desk, and zendesk.

Filter is one of the four Liquid references including filter, objects, basics and tags. Filters are simple methods that modify the output of numbers, strings, variables, and objects. Filters are placed between an output tag and are denoted by a pipe character.

What is file URL

URL filters generate links to assets Shopify’s Content Delivery Network. Links for filtering collections and blogs are also created using this filters. Besides, in many URL filter links, you will see a question mark with a number followed the asset’s file path. For example:

How to Get File URL in Shopify

The URL of a file is returned in the admin’s files page by File URL.


{{ 'size-chart.pdf' | file_url }}




To sum up, file URL helps you to find out folders easily. Liquid supports you to use URL filter to track information under link form. We hope that you will seek out the most suitable way to search your folder. Let us know your difficulties if you have problems with the formula. We will address them.

Recommend for you
Image Description
SMS, Email Marketing Automation

Top rated Marketing automation for Shopify stores

Learn more
Image Description
SEO Suite

Auto-optimize website elements and structure in one-click.

Learn more
Boost Sales [Free]

Boost sales: Sales Pop, Trust badges, Countdown timer, more

Learn more
Image Description
Photo Reviews [Free]

Use photo reviews to boost sales

Learn more


Stay in the know

Get special offers on the latest news from AVADA.

40k subscribers has been joined!

Earn $10 in reward now!

go up