File upload option

A File upload option lets customers attach a file to the item they are buying, such as a photo, a logo or a design. The file is saved in your store's Shopify Files and linked from the order. This article shows how to set one up, what customers can upload and how long files are kept.

Add a file upload

  1. Open the option set and click Add option.
  2. In the Customer input group, choose File upload.
  3. Enter a Label, for example "Upload your photo". Optionally add Help text.
  4. Under File types, tick Images, PDF and Documents as needed. Choose at least one.
  5. Enter Files per item, the most files a customer can attach.
  6. Enter Largest file in MB.
  7. Optionally enter an Add-on price.

The File upload settings with the label Your photo, Images and PDF ticked, Files per item, Largest file, an Add-on price and the note that files are deleted 90 days after upload 8. Switch on Required if customers must upload a file before adding to cart. 9. Save the option set.

Settings

Setting What it does
Label The name above the upload field. Up to 100 characters.
Help text A line under the label. Up to 300 characters.
File types Images (JPG, PNG, WEBP, GIF), PDF, and Documents (DOCX, XLSX, PPTX). You must choose at least one.
Files per item The most files a customer can upload for one item. Whole number from 1 to 10.
Largest file The size limit for each file, in MB. Whole number from 1 to 10.
Add-on price An optional amount for this option. It is charged once, however many files the customer uploads. See How add-on pricing works.
Required Customers must upload a file before adding to cart.

A new File upload option starts with Images ticked, Files per item at 1 and Largest file at 10 MB.

An option set allows at most 10 files in total across all of its File upload options. If you add the Files per item of every File upload option in the set and the sum is above 10, the app does not save the set.

Office documents that contain macros or other active content are refused.

What customers see

Customers click Choose file. Under the button they see the accepted types and the size limit, for example "JPG, PNG, WEBP, GIF, up to 10 MB". Each file uploads in turn with a progress bar and shows "Uploaded" when it finishes. A customer can remove a file or try a failed one again. Once the Files per item limit is reached, the Choose file button is hidden.

A File upload option on a product page with its add-on price, the Choose file button and the line JPG, PNG, WEBP, GIF, up to 10 MB

Customers cannot add the item to the cart while a file is still uploading. They see "Wait for your file to finish uploading, or remove it."

Situation Message
The file is larger than Largest file "This file is over" the limit "MB."
The file type is not accepted "This file type isn't accepted."
The upload fails "This file couldn't be uploaded."
An upload limit is reached, or uploads are temporarily busy "This store can't take more files right now. Try again later." with a Try again button

Where files are stored and for how long

Files are uploaded through the app to your store's Files area in Shopify admin. The order keeps a link to each file. Files are deleted 90 days after upload, and the link on the order stops working then. Download files you want to keep before that.

[!WARNING] Files are deleted automatically after 90 days. If you uninstall the app, the app can no longer delete them, so any files that are still in Shopify Files stay there until you remove them yourself.

Conditions

A File upload option can show or hide itself with a condition. It cannot be used as the source of another option's condition.

Related articles

← Color picker option Dimension option →