Skip to main content

File Fields

Files represent media assets in your Shopify store, including images, videos, and documents.

Updated this week

Sample File

This sample file shows the basic columns that you need to set in order to import files to Shopify.

Download sample Files Import File.

General

ID

Description

Example Value

Shopify's unique file identifier

12345678

If present, the ID will be used to group multiple rows together into a single file. When importing, the ID will be used to see if the file already exists on the store. If there's no ID match the app will attempt to find an existing file using the File Name.

File Name

Description

Example Value

Name of the file

summer-collection.jpg

The file name is used for finding an existing file on the store if the ID is not present.

Command

Description

Example Value

Action to perform: MERGE, DELETE, NEW

MERGE

  • MERGE: Update existing file or create if not found

  • DELETE: Remove the file from the store

  • NEW: Create a new file (will fail if file already exists)

Description

Example Value

URL to access the file

https://cdn.shopify.com/s/files/1/0001/0001/files/summer-collection.jpg

The direct URL where the file can be accessed. When importing, this should be a publicly accessible URL that Shopify can download from.

Alt Text

Description

Example Value

Alternative text description

Summer collection preview image

Alternative text for accessibility and SEO purposes. Particularly important for images to describe their content.

Created At

Description

Example Value

When file was uploaded

2023-06-01 10:00:00 -0400

The timestamp when the file was originally uploaded to Shopify.

ISO-formatted timestamps (eg, 2023-06-01T10:00:00Z) are also supported. If no timezone is specified, the store's timezone will be used.

Type

Description

Example Value

Type of media content: IMAGE, VIDEO, MODEL_3D, FILE, EXTERNAL_VIDEO

IMAGE

  • IMAGE: Standard image files (JPEG, PNG, GIF, etc.)

  • VIDEO: Video files uploaded to Shopify

  • MODEL_3D: 3D model files for augmented reality

  • FILE: General file attachments

  • EXTERNAL_VIDEO: Videos hosted on external platforms like YouTube or Vimeo

Mime Type

Description

Example Value

File's MIME type

image/jpeg

The MIME type identifies the format of the file content. Common examples include image/jpeg, image/png, video/mp4, model/gltf-binary.

Width

Description

Example Value

Image width (pixels) - Export only

1920

The width of the image in pixels. This field is export-only and cannot be imported.

Height

Description

Example Value

Image height (pixels) - Export only

1080

The height of the image in pixels. This field is export-only and cannot be imported.

Duration

Description

Example Value

Length of video/audio (seconds) - Export only

0

The duration of video or audio files in seconds. This field is export-only and cannot be imported. For non-video files, this value is typically 0.

Status

Description

Example Value

Current file status: READY, FAILED, PROCESSING, UPLOADED

READY

  • READY: File has been successfully processed and is available

  • FAILED: File processing failed

  • PROCESSING: File is currently being processed

  • UPLOADED: File has been uploaded but not yet processed

Errors

Description

Example Value

Any upload/processing errors - Export only

null

Details about any errors that occurred during file upload or processing. This field is export-only and shows error information when files fail to process correctly.

Size Bytes

Description

Example Value

File size (bytes) - Export only

2097152

The exact file size in bytes. This field is export-only and cannot be imported.

Size MB

Description

Example Value

File size (megabytes) - Export only

2.0

The file size converted to megabytes for easier reading. This field is export-only and cannot be imported.

Size

Description

Example Value

Human-readable file size - Export only

2.0 MB

A human-readable representation of the file size with appropriate units (KB, MB, GB). This field is export-only and cannot be imported.

Export Filters

You can use these filters to limit which files are exported:

  • media_type: Filter by media type (IMAGE, EXTERNAL_VIDEO, MODEL_3D, VIDEO, FILE)

  • filename: Filter by filename

Did this answer your question?