Home Metafields Import PDFs and images into Shopify metafields

Import PDFs and images into Shopify metafields

Last updated on Dec 04, 2026

Check the product or variant metafield definition in Shopify. A URL field stores a URL. A file reference stores a reference to a file in Shopify. A list of file references needs a list definition and may use a different input representation.

  1. For a URL field, confirm the PDF or image URL works in a browser without a login. Export one existing product or variant with the intended metafield selected. Use the exact exported heading for that definition.
  2. For a file reference, upload the asset into Shopify Files. Export a sample record that already contains a file reference of the intended type. Use the emitted value format and the exact definition from that shop.
  3. Keep the product or variant ID in the test file. Make a change on one representative record and run Validate Data before importing.
  4. Check the stored value in Shopify and its appearance on the storefront. If uploading an image only to a metafield, leave unrelated product media columns unselected.

When changing definition types, export a backup and test a separate definition before replacing an established storefront reference.

Metafield examples and file references ยท Shopify Files