Upload Native

How to show the uploaded file in a Shopify order confirmation email

Updated Dec 2, 2026 Any plan 4 min read

Short answer: Edit the notification template in your Shopify admin and print the cart attribute with the attributes variable, or loop over each line item's properties. The upload reference is stored as a plain URL, so it appears as text unless you wrap it in a link.

Can an order email show the uploaded file?

Yes, with a small edit to the notification template. Upload Native does not send email and does not change your templates. What it does is put the file reference on the order as a cart attribute or a line-item property. Shopify’s notification templates can read both with Liquid.

Shopify’s email variable reference describes attributes as the attributes attached to the order, and line.properties as an array of custom information for an item. Shopify also notes that all variables are available in any notification template, though some may be empty if the data does not exist yet when the email is sent.

Which variable do I use?

It depends on where the customer uploaded.

Upload happened onStored asRead it with
Cart page or checkoutCart attribute upload_referenceattributes.upload_reference
Product page (Auto setting)Line-item property Uploaded fileline.properties

The line item versus cart attribute guide explains how to choose between them. If you set a custom attribute name in the block, use that name after attributes. instead.

How do I print the cart attribute?

Open Notifications in your Shopify admin, choose the order confirmation template, and edit its code. Shopify’s notification templates support Liquid. Add a short block where you want the file to appear:

{% if attributes.upload_reference != blank %}
  <p>
    Your file:
    <a href="{{ attributes.upload_reference }}">View uploaded file</a>
  </p>
{% endif %}

The if check keeps the paragraph out of orders that had no upload. In email templates, use attributes directly. Do not put order. in front of it, which is the form used for SMS.

How do I print a line-item property?

Product page uploads belong to a line item, so put the loop inside the part of your template that already lists line items. Shopify’s variable reference lists line_items as all line items in the order.

{% for line in line_items %}
  {% for property in line.properties %}
    {% if property.first == 'Uploaded file' and property.last != blank %}
      <p>
        {{ line.title }}:
        <a href="{{ property.last }}">View uploaded file</a>
      </p>
    {% endif %}
  {% endfor %}
{% endfor %}

Each property has a name (property.first) and a value (property.last). The check matches the Uploaded file name that the block writes on a product page. If you chose “Hide the file from cart and checkout”, the name starts with an underscore, so match _Uploaded file instead.

Your own template may already have a line-item loop with a different variable name. Copy its pattern rather than adding a second loop.

Think about who needs it.

  • Staff notification. This is where a link is almost always useful. A production team can open the file from the email without searching the admin.
  • Customer confirmation. A link is a good proof that the file arrived, but a bare address looks untidy. A short label such as “View uploaded file” reads better.

Do not paste the link anywhere you do not want a third party to find it. The file URL is a Shopify Files address, so treat the link as semi-private and avoid forwarding it publicly.

How do I test the change?

  1. Save the template, then place a test order with a file attached.
  2. Use the preview in the notification editor, and send a test email to yourself.
  3. Check each path: cart upload, product page upload, and an order with no file.
  4. Open the link on a phone and a laptop to confirm it works.

If the link is empty, the order probably has no value on that key. Open the order in the admin and compare the names exactly. A custom attribute name, an underscore prefix, or a second block’s upload_reference_2 are the usual causes.

If a template cannot show what you need, the Admin API route in the order guide reads the same values for a script or workflow.

FAQ

Why does the email show a long address instead of a filename?
The stored value is the file's URL. Shopify prints it as it was saved, so wrap it in an anchor tag if you want a clickable link with your own label.
Will a hidden property appear in the email?
Shopify says a leading underscore hides a property from customers at checkout. Whether a given email shows it depends on your template, so send yourself a test order to check.
What about a customer who uploaded several files?
The value is then a JSON array in one string. It prints as a list in square brackets. Keep the email to a single file or use the admin and Flow for multi-file orders.
Should I send the file link to the customer at all?
Only if it helps them. Many stores keep the link in the staff notification and show the customer a simple line such as File received.

Add file uploads to your store

Install free. Files save to your own Shopify Files.

Install the app