Shopify Flow reference
Upload Native adds a File uploaded trigger and a Load file details action to Shopify Flow. Field names below come straight from the extension config and schema.
Trigger: File uploaded
| Field | Type | Description |
|---|---|---|
File id | single_line_text_field | Shopify File identifier (GID) of the uploaded file. |
File url | url | URL of the uploaded file in Shopify Files. |
Filename | single_line_text_field | Original filename of the upload. |
Mime type | single_line_text_field | MIME type of the uploaded file. |
File size | number_decimal | Size of the file in bytes. |
Upload timestamp | single_line_text_field | ISO 8601 time the file was uploaded. |
Reference | single_line_text_field | Opaque order/cart reference id (no customer PII). |
Action: Load file details
Provide a file id or an exact filename. The file id wins when both are set.
| Input | Type | Description |
|---|---|---|
File id | single_line_text_field | Shopify File GID, e.g. gid://shopify/GenericFile/123 — wins if both fields are provided. |
Filename | single_line_text_field | Exact filename, e.g. contract.pdf |
Returns FileDetails
# Response SDL for the "Load file details" Flow action. Field names are the contract with
# handleFlowAction's `return_value` (apps/worker/src/shopify/flow.ts) — do not rename.
type FileDetails {
fileId: String!
filename: String!
url: String!
urlSmall: String
urlMedium: String
urlLarge: String
mimeType: String
sizeBytes: Int
} Back to the developer docs.