# How to use the Shopify Flow "File uploaded" trigger

> Upload Native adds a File uploaded trigger and a Load file details action to Shopify Flow. The trigger fires when a customer finishes an upload, and the action returns the file's URL, type and size. Flow is a free Shopify app on Basic, Grow, Advanced and Plus plans.

## What does Upload Native add to Shopify Flow?

Two things.

1. A trigger called **File uploaded**.
2. An action called **Load file details**.

Together they let a workflow react to a customer file and hand it to the next step, such as an email, a message, or another app. Shopify describes Flow as a free app available on the Basic, Grow, Advanced and Plus plans, so you install it from the Shopify App Store first.

## What does the File uploaded trigger give me?

The trigger fires on every completed upload. It passes these fields to the workflow:

| Field | What it holds |
| --- | --- |
| File id | The Shopify File ID (a GID) |
| File url | The URL of the file in Shopify Files |
| Filename | The original filename |
| Mime type | For example `application/pdf` |
| File size | Size in bytes |
| Upload timestamp | An ISO 8601 time |
| Reference | An opaque cart or checkout reference, with no personal data |

There is no order field. A customer uploads before paying, so no order exists yet. That shapes what the trigger is good for.

## What does Load file details return?

The action looks up a file in Shopify Files by File ID or by exact filename. If you fill in both, the File ID wins. It returns:

- `fileId`, `filename` and `url`
- `urlSmall`, `urlMedium` and `urlLarge` for images
- `mimeType`
- `sizeBytes`

You can use it right after the trigger, or in a workflow that starts from something else, such as a product or order event, when you already know a filename.

## How do I build a workflow that emails my team?

A simple, useful example is a message to your production team whenever a file arrives.

1. In Flow, create a workflow and choose **File uploaded** as the trigger.
2. Add a condition if you only want some files, for example Mime type equals `application/pdf`.
3. Add the **Load file details** action. In its File id field, insert the trigger's File id.
4. Add a **Send internal email** action. In the body, insert the URL from Load file details and the Filename.
5. Turn the workflow on, then upload a test file on your store.

Because the trigger sends the URL already, step 3 is optional for a plain link. It becomes useful when you want the image sizes or want to look up the file from another workflow.

## What can I do with the file URL?

- Send the link to the person who prepares the order.
- Post it to a team chat app that has a Flow action.
- Hand it to another app's action that accepts a URL.
- Filter out files by type or size, so only the ones that need review reach a person.

The URL points at the file in your Shopify Files. Share it only with people who should see the artwork.

## What can't the trigger do?

Be clear about the limits so you build the right thing.

- It cannot tag or edit an order, because it has no order ID.
- It carries no customer name or email, so it cannot address a message to the customer.
- It fires per upload, so a customer who replaces a file triggers it again.

For order-based work, start a separate workflow from Shopify's own order trigger and read the file values from the order. The [order guide](/guides/get-uploaded-file-from-shopify-order/) shows where those values live and how the Admin API returns them.

## How do I debug a workflow that did not run?

Open the workflow's run history in Flow and look for a run at the time of your test upload. If there is none, check that the workflow is on and that the Upload Native app is installed. If a run exists but the email did not arrive, open the run and check which step failed. Then confirm any condition you added matches the test file, since a PDF will not pass an image condition.

## FAQ

### Can the trigger tag the order?

Not directly. Uploads happen before an order exists, so the trigger carries a cart reference and no order ID. Use it for notifications and routing, and use the order data for tagging.

### Does the workflow receive the customer's name or email?

No. The app stores no customer personal data. The trigger sends file details and an opaque reference only.

### Can Load file details find a file I uploaded by hand?

Yes. It also accepts an exact filename, so any workflow on any trigger can look up a file in Shopify Files.

### Does the trigger fire if the customer abandons the cart?

Yes, because it fires when the upload completes, not when the order is paid. A workflow that should only run for real orders needs a different starting point.

Canonical URL: https://uploadnative.app/guides/shopify-flow-file-uploaded/
