Upload Native

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

FieldTypeDescription
File idsingle_line_text_fieldShopify File identifier (GID) of the uploaded file.
File urlurlURL of the uploaded file in Shopify Files.
Filenamesingle_line_text_fieldOriginal filename of the upload.
Mime typesingle_line_text_fieldMIME type of the uploaded file.
File sizenumber_decimalSize of the file in bytes.
Upload timestampsingle_line_text_fieldISO 8601 time the file was uploaded.
Referencesingle_line_text_fieldOpaque 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.

InputTypeDescription
File idsingle_line_text_fieldShopify File GID, e.g. gid://shopify/GenericFile/123 — wins if both fields are provided.
Filenamesingle_line_text_fieldExact 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.