Theme block settings
Settings of the File upload theme app block, which works on any plan and any Online Store 2.0 theme. The list is generated from the block schema.
| Setting id | Label | Type | Default | Notes |
|---|---|---|---|---|
button_label | Button label | text | Upload a file | |
modal_title | Modal title | text | Upload your file | |
instruction | Instruction text | textarea | Attach a file to your order. | |
allowed_types | Allowed file types (accept attribute) | text | .pdf,image/* | |
type_hint_label | File-type hint | text | PDF, Images | Shown before the size in the hint, e.g. "PDF, Images · up to 20 MB". Blank = derive from the accepted types above. |
max_size_mb | Max file size (MB) | range | 20 | Shopify Files caps every file at 20 MB. [Size limits](https://uploadnative.app/guides/shopify-file-upload-size-limit/) |
layout | Layout | select | auto | Auto: button + modal on product pages, compact inline on the cart. |
fill_width | Fill width | checkbox | true | Buttons span the full width of their container. |
capture_target | Where to attach the file | select | auto | Auto: line-item property on product pages, cart attribute on the cart. [Which to use](https://uploadnative.app/guides/line-item-property-vs-cart-attribute/) |
attribute_name | Cart attribute name (blank = auto) | text | Leave blank to auto-generate (upload_reference, upload_reference_2, …). | |
hide_line_item_property | Hide the file from cart & checkout | checkbox | false | Line-item property mode only. Adds a _ prefix so the uploaded file stays on the order (visible to you in admin) but is hidden from shoppers in the cart and checkout. |
allow_multiple | Allow multiple files | checkbox | false | |
max_files | Max files (when multiple) | number | 5 | |
conditional_visibility | Only show for flagged products | checkbox | false | Show this block only when the product (or, on the cart page, any cart item) has 'Show file upload' enabled — find it under Metafields on the product page in your Shopify admin. The block always shows here in the theme editor. |
audience | Show to | select | all | B2B customers are logged-in company buyers. The block always shows here in the theme editor. |
theme_button_class | Theme button CSS class | text | Match your theme's buttons: enter your theme's button class (Dawn/Horizon: button). Leave blank to inherit. | |
preview_max_width | Image preview size (px) | number | 64 | Max size of image thumbnails (24–160). |
manage_files_label | Manage-files button (multiple, has files) | text | Manage files ({count}) | Use {count} for the number of attached files. |
replace_artwork_label | Replace button (single, has file) | text | Replace file | |
file_attached_label | Status: one file attached | text | File attached | |
files_attached_label | Status: many files attached | text | {count} files attached | Use {count} for the number of attached files. |
add_file_label | Add button (single, empty) | text | Add your file | |
add_files_label | Add button (multiple, empty) | text | Add your files | |
add_another_file_label | Add button (multiple, has files) | text | Add another file | |
replace_file_label | Add button (single, has file) | text | Replace file | |
cancel_label | Modal: cancel button | text | Cancel | |
done_label | Modal: done button | text | Done | |
dz_title | Drop-zone title (empty) | text | Drag & drop your file here, or browse | |
dz_title_another | Drop-zone title (multiple, has files) | text | Drag & drop another file, or browse | |
dz_title_replace | Drop-zone title (single, has file) | text | Replace your file | |
uploading_label | Uploading | text | Uploading… {pct}% | Use {pct} for the percent complete. |
finalizing_label | Finalizing | text | Finalizing… | |
attached_label | Attached (per file) | text | attached | |
size_hint_label | Size hint | text | up to {max} MB | Use {max} for the max file size in MB. |
req_single_label | Requirement (single) | text | one file | |
req_multiple_label | Requirement (multiple) | text | up to {max} files | Use {max} for the max file count. |
error_failed_short | Failed (per file) | text | Upload failed | |
error_generic | Failed (generic) | text | Upload failed. Please try again. | |
error_limit | Upload limit reached | text | Upload limit reached for this store. | |
error_unavailable | Uploads unavailable | text | File uploads aren't available for this store right now. | |
error_type | File type not allowed | text | That file type is not allowed. | |
error_size | File too large (use {max}) | text | That file is too large (max {max} MB). | Use {max} for the max file size in MB. |
error_attach | Could not attach | text | Could not attach the file to your cart. | |
any_file_label | Any file (no type restriction) | text | Any file | |
remove_file_label | Remove-file aria-label | text | Remove file | |
close_label | Close-modal aria-label | text | Close | |
notice_text | App-embed-disabled notice | textarea | File upload is not active yet. The store owner needs to enable the Upload Native app embed in their theme. | |
noscript_text | JavaScript-disabled notice | text | Enable JavaScript to attach a file to your order. |
Back to the developer docs.