{"id":49,"date":"2017-01-19T15:21:21","date_gmt":"2017-01-19T15:21:21","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/?p=49"},"modified":"2024-06-06T11:40:17","modified_gmt":"2024-06-06T11:40:17","slug":"how-to-create-general-upload-rules","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/","title":{"rendered":"How to create general upload rules"},"content":{"rendered":"\n<p>To let the user upload one or more files and associate them to specific products in the cart, make sure to first create the specific upload rules in the plugin settings or on the product detail page.<\/p>\n\n\n\n<p>The general rules apply to all the products of the shop, yet, you can disable them from the product edit page.<\/p>\n\n\n\n<div class=\"alert alert-warning\">\n<p style=\"margin-bottom: 0;\"><strong>If the upload button does not show:&nbsp;<\/strong><\/p>\n<ul style=\"margin-bottom: 0;\">\n<li>check the pages on which you enabled the file upload<\/li>\n<li>make sure that you enabled the upload for the products and\/or the order<\/li>\n<\/ul>\n<\/div>\n\n\n\n<p>To create a general rule, go to\u00a0the tab <strong>General <\/strong>and click on the\u00a0<strong>Add new rule<\/strong>\u00a0button.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"836\" height=\"328\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule.jpg\" alt=\"How to create a general upload rule\" class=\"wp-image-449\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule.jpg 836w, https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule-300x118.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule-768x301.jpg 768w\" sizes=\"auto, (max-width: 836px) 100vw, 836px\" \/><\/a><\/figure><\/div>\n\n\n<p>For each new rule you can set:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>label<\/strong>: text to describe the upload field;<\/li>\n\n\n\n<li><strong>allowed file extensions<\/strong>: if the uploaded file has a different extension, it will be rejected. Leave empty to allow any file extension;<\/li>\n\n\n\n<li><strong>maximum size<\/strong>: the maximum size allowed for the uploaded file;<\/li>\n\n\n\n<li><strong>allow notes<\/strong>: when enabled, the user will be able to enter a note that will be visible to the administrator in the order details.<\/li>\n<\/ul>\n\n\n\n<p><strong>Each rule will enable an upload option on the product.&nbsp;<\/strong><\/p>\n\n\n\n<p>Assuming that we have created 2 upload rules, the user must add 2 files when purchasing.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/cart-page.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"556\" height=\"539\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/cart-page.jpg\" alt=\"Order with uploads - example\" class=\"wp-image-450\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/cart-page.jpg 556w, https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/cart-page-300x291.jpg 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/a><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>To let the user upload one or more files and associate them to specific products in the cart, make sure to first create the specific upload rules in the plugin settings or on the product detail page. The general rules apply to all the products of the shop, yet, you can disable them from the &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to create general upload rules<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,5],"tags":[],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-how-to-create-a-new-upload-rule","category-settings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YITH Uploads: How to create general upload rules<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YITH Uploads: How to create general upload rules\" \/>\n<meta property=\"og:description\" content=\"To let the user upload one or more files and associate them to specific products in the cart, make sure to first create the specific upload rules in the plugin settings or on the product detail page. The general rules apply to all the products of the shop, yet, you can disable them from the &hellip; Continue reading How to create general upload rules\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Uploads\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-19T15:21:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-06T11:40:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule.jpg\" \/>\n<meta name=\"author\" content=\"Alessio Torrisi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alessio Torrisi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/\",\"name\":\"YITH Uploads: How to create general upload rules\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule.jpg\",\"datePublished\":\"2017-01-19T15:21:21+00:00\",\"dateModified\":\"2024-06-06T11:40:17+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/#primaryimage\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule.jpg\",\"contentUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule.jpg\",\"width\":836,\"height\":328,\"caption\":\"How to create a general upload rule\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create general upload rules\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/\",\"name\":\"YITH WooCommerce Uploads\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\",\"name\":\"Alessio Torrisi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"caption\":\"Alessio Torrisi\"},\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/author\/alessio\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YITH Uploads: How to create general upload rules","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/","og_locale":"en_US","og_type":"article","og_title":"YITH Uploads: How to create general upload rules","og_description":"To let the user upload one or more files and associate them to specific products in the cart, make sure to first create the specific upload rules in the plugin settings or on the product detail page. The general rules apply to all the products of the shop, yet, you can disable them from the &hellip; Continue reading How to create general upload rules","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/","og_site_name":"YITH WooCommerce Uploads","article_published_time":"2017-01-19T15:21:21+00:00","article_modified_time":"2024-06-06T11:40:17+00:00","og_image":[{"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule.jpg","type":"","width":"","height":""}],"author":"Alessio Torrisi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alessio Torrisi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/","name":"YITH Uploads: How to create general upload rules","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/#primaryimage"},"image":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule.jpg","datePublished":"2017-01-19T15:21:21+00:00","dateModified":"2024-06-06T11:40:17+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/#primaryimage","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule.jpg","contentUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/add-rule.jpg","width":836,"height":328,"caption":"How to create a general upload rule"},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/how-to-create-general-upload-rules\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/"},{"@type":"ListItem","position":2,"name":"How to create general upload rules"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/","name":"YITH WooCommerce Uploads","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5","name":"Alessio Torrisi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","caption":"Alessio Torrisi"},"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/author\/alessio\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":16,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/posts\/49\/revisions\/515"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}