Upload Native

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 idLabelTypeDefaultNotes
button_labelButton labeltextUpload a file
modal_titleModal titletextUpload your file
instructionInstruction texttextareaAttach a file to your order.
allowed_typesAllowed file types (accept attribute)text.pdf,image/*
type_hint_labelFile-type hinttextPDF, ImagesShown before the size in the hint, e.g. "PDF, Images · up to 20 MB". Blank = derive from the accepted types above.
max_size_mbMax file size (MB)range20Shopify Files caps every file at 20 MB. [Size limits](https://uploadnative.app/guides/shopify-file-upload-size-limit/)
layoutLayoutselectautoAuto: button + modal on product pages, compact inline on the cart.
fill_widthFill widthcheckboxtrueButtons span the full width of their container.
capture_targetWhere to attach the fileselectautoAuto: 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_nameCart attribute name (blank = auto)textLeave blank to auto-generate (upload_reference, upload_reference_2, …).
hide_line_item_propertyHide the file from cart & checkoutcheckboxfalseLine-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_multipleAllow multiple filescheckboxfalse
max_filesMax files (when multiple)number5
conditional_visibilityOnly show for flagged productscheckboxfalseShow 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.
audienceShow toselectallB2B customers are logged-in company buyers. The block always shows here in the theme editor.
theme_button_classTheme button CSS classtextMatch your theme's buttons: enter your theme's button class (Dawn/Horizon: button). Leave blank to inherit.
preview_max_widthImage preview size (px)number64Max size of image thumbnails (24–160).
manage_files_labelManage-files button (multiple, has files)textManage files ({count})Use {count} for the number of attached files.
replace_artwork_labelReplace button (single, has file)textReplace file
file_attached_labelStatus: one file attachedtextFile attached
files_attached_labelStatus: many files attachedtext{count} files attachedUse {count} for the number of attached files.
add_file_labelAdd button (single, empty)textAdd your file
add_files_labelAdd button (multiple, empty)textAdd your files
add_another_file_labelAdd button (multiple, has files)textAdd another file
replace_file_labelAdd button (single, has file)textReplace file
cancel_labelModal: cancel buttontextCancel
done_labelModal: done buttontextDone
dz_titleDrop-zone title (empty)textDrag & drop your file here, or browse
dz_title_anotherDrop-zone title (multiple, has files)textDrag & drop another file, or browse
dz_title_replaceDrop-zone title (single, has file)textReplace your file
uploading_labelUploadingtextUploading… {pct}%Use {pct} for the percent complete.
finalizing_labelFinalizingtextFinalizing…
attached_labelAttached (per file)textattached
size_hint_labelSize hinttextup to {max} MBUse {max} for the max file size in MB.
req_single_labelRequirement (single)textone file
req_multiple_labelRequirement (multiple)textup to {max} filesUse {max} for the max file count.
error_failed_shortFailed (per file)textUpload failed
error_genericFailed (generic)textUpload failed. Please try again.
error_limitUpload limit reachedtextUpload limit reached for this store.
error_unavailableUploads unavailabletextFile uploads aren't available for this store right now.
error_typeFile type not allowedtextThat file type is not allowed.
error_sizeFile too large (use {max})textThat file is too large (max {max} MB).Use {max} for the max file size in MB.
error_attachCould not attachtextCould not attach the file to your cart.
any_file_labelAny file (no type restriction)textAny file
remove_file_labelRemove-file aria-labeltextRemove file
close_labelClose-modal aria-labeltextClose
notice_textApp-embed-disabled noticetextareaFile upload is not active yet. The store owner needs to enable the Upload Native app embed in their theme.
noscript_textJavaScript-disabled noticetextEnable JavaScript to attach a file to your order.

Back to the developer docs.