{"id":212,"date":"2026-11-19T09:22:50","date_gmt":"2026-11-19T09:22:50","guid":{"rendered":"https:\/\/oddlylogical.com\/logical-forms\/?post_type=doc&#038;p=212"},"modified":"2026-11-27T06:07:26","modified_gmt":"2026-11-27T06:07:26","slug":"file-upload-field","status":"publish","type":"doc","link":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/","title":{"rendered":"File Upload field"},"content":{"rendered":"<p>Use File Upload for documents or images submitted with an entry. The default accepts JPG, JPEG, PNG, WebP and PDF, with one file and a 5 MB per-file setting. Choose only the formats your workflow needs.<\/p>\n<p><strong>Availability:<\/strong> Core (Free).<\/p>\n<h2 id=\"add\">Add and configure the field<\/h2>\n<ol>\n<li>Open the form in Build and add <strong>File Upload<\/strong> from Add fields.<\/li>\n<li>Select its canvas card to open Field options, then configure the controls below.<\/li>\n<li>Save the form and check its saved Preview and embedded page.<\/li>\n<\/ol>\n<h2 id=\"settings\">Field-specific settings<\/h2>\n<table>\n<thead>\n<tr>\n<th>Setting<\/th>\n<th>What it does<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Allow multiple files<\/td>\n<td>Allow multiple files starts off; single mode accepts one file.<\/td>\n<\/tr>\n<tr>\n<td>Allowed file types<\/td>\n<td>Choose at least one supported Allowed file type. Extension and file validation still run on the server.<\/td>\n<\/tr>\n<tr>\n<td>Maximum file size (MB)<\/td>\n<td>Maximum file size (MB) is per file. The effective limit also respects the server's upload limit; a larger field setting cannot raise the host limit.<\/td>\n<\/tr>\n<tr>\n<td>Maximum files<\/td>\n<td>Maximum files applies when multiple mode is enabled: 1\u201350, default 5. It is retained while single mode is selected.<\/td>\n<\/tr>\n<tr>\n<td>Upload instructions<\/td>\n<td>Upload instructions appear in the picker. Explain the expected document and format alongside the displayed limits.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<figure class=\"lf-docs-shot\" id=\"lf-shot-file-upload-field-1\" data-lf-docs-asset=\"S39-upload-limits\" style=\"--lf-shot-width: 405px\">\n  <a href=\"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-options.webp\" data-lf-docs-image data-native-width=\"810\" data-native-height=\"1896\" aria-label=\"Enlarge screenshot: Choose accepted file types, per-file size and a file-count limit.\"><br \/>\n    <img src=\"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-options.webp\" srcset=\"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-options-320w.webp 320w, https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-options-640w.webp 640w, https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-options-800w.webp 800w, https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-options.webp 810w\" sizes=\"auto, (min-width: 1168px) 405px, (min-width: 992px) min(405px, calc(100vw - 337px)), (min-width: 768px) min(405px, calc(100vw - 278px)), min(405px, calc(100vw - 48px))\" width=\"810\" height=\"1896\" alt=\"File Upload options with multiple files enabled, five allowed formats, a 1 MB per-file limit and a maximum of five files.\" loading=\"lazy\" decoding=\"async\"><br \/>\n  <\/a><figcaption>Choose accepted file types, per-file size and a file-count limit.<\/figcaption><\/figure>\n<h2 id=\"shared-options\">Applicable shared options<\/h2>\n<p>This field also provides Description placement, Validation message placement, Label, Description, Required, Required message, Invalid value message, CSS classes, Hide label, Admin label, Visibility. See <a href=\"\/docs\/common-field-options\/\">common field options<\/a> for their behavior.<\/p>\n<p>Review <a href=\"\/docs\/field-visibility\/\">Visible, Hidden and Internal<\/a> before changing presentation. Static hiding differs from <a href=\"\/docs\/field-conditions\/\">conditional applicability<\/a>.<\/p>\n<h2 id=\"answers\">Answers and behavior<\/h2>\n<p>With JavaScript, files stage while progress is shown. Remove or Retry operates on the individual file. Pending or failed uploads block submission and page navigation. Without JavaScript, the native multipart picker submits with the form. A file successfully staged for the same attempt can survive another question failing validation.<\/p>\n<p>Uploading alone creates no entry or notification. Final accepted submission claims the files. Entries show original filenames and sizes, while plain merge tags and CSV use download links. Uploads cannot be placed inside a Repeater in the current version.<\/p>\n<div class=\"lf-docs-note\">\n<p><strong>Anyone with a committed file's download link can access it.<\/strong> This is access by link, not a login or role restriction. The default storage is under the site's WordPress uploads directory; a known raw URL may also be served by the host. For sensitive collection, review storage and access requirements before enabling uploads.<\/p>\n<\/div>\n<p>A host can configure durable storage outside document roots with <code>LFORMS_UPLOAD_PRIVATE_DIR<\/code>. Include current and previous storage directories in backups and transfers; changing the path affects new files, not existing ones. Keep HTTPS and exclude file-download requests from page\/CDN caching.<\/p>\n<p>Defaults also bound total Logical Forms storage to 2 GiB, temporary staging to 1,000 files \/ 512 MiB per site and each upload source to 25 staged files \/ 64 MiB. These are separate from field limits. The host can configure them. Shared anonymous addresses can share a source allowance.<\/p>\n<p>Abandoned temporary files expire after 24 hours, with hourly cron and bounded cleanup during later uploads. Trash retains committed files. Permanent entry deletion, removed\/replaced files and confirmed field deletion reconcile owned files; failed physical deletion waits for retry. Downloads require the active plugin.<\/p>\n<h2 id=\"example\">Example and checks<\/h2>\n<p>For a project brief, allow PDF only, retain single-file mode and set a practical per-file limit below your host allowance. Make Required explicit if a brief is essential. Explain the expected content in Description.<\/p>\n<p>On a test form, check an allowed file, wrong type, oversized file, removal, Retry and a failure in another question. For multiple files, test the count boundary. Confirm the saved entry link downloads the expected file, then apply your own retention process. See <a href=\"\/docs\/file-upload-validation-messages\/\">upload messages<\/a> for visitor-facing error wording.<\/p>\n<p>Use <a href=\"\/docs\/test-a-form\/\">the testing checklist<\/a> to check validation and the saved entry. <a href=\"\/examples\/all-fields\/\">Explore all fields<\/a> provides live examples.<\/p>\n<figure class=\"lf-docs-shot\" id=\"lf-shot-file-upload-field-2\" data-lf-docs-asset=\"S39-idle-file-picker\" style=\"--lf-shot-width: 800px\">\n  <a href=\"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-select-file.webp\" data-lf-docs-image data-native-width=\"2073\" data-native-height=\"583\" aria-label=\"Enlarge screenshot: The idle picker shows the allowed types and per-file size before selection.\"><br \/>\n    <img src=\"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-select-file.webp\" srcset=\"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-select-file-320w.webp 320w, https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-select-file-640w.webp 640w, https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-select-file-800w.webp 800w, https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-select-file-1600w.webp 1600w, https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-select-file.webp 2073w\" sizes=\"auto, (min-width: 1168px) 800px, (min-width: 992px) min(800px, calc(100vw - 337px)), (min-width: 768px) min(800px, calc(100vw - 278px)), min(800px, calc(100vw - 48px))\" width=\"2073\" height=\"583\" alt=\"Native File Upload control with drop area, Select file button and the configured image\/PDF formats and 1 MB limit.\" loading=\"lazy\" decoding=\"async\"><br \/>\n  <\/a><figcaption>The idle picker shows the allowed types and per-file size before selection.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Accept files in Logical Forms, set types, per-file size and count limits, and understand staging, download-link access and cleanup.<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":147,"template":"","doc-categories":[14],"class_list":["post-212","doc","type-doc","status-publish","hentry","doc_category-fields"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>File Upload field | Logical Forms Docs<\/title>\n<meta name=\"description\" content=\"Accept files in Logical Forms, set types, per-file size and count limits, and understand staging, download-link access and cleanup.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"File Upload field | Logical Forms Docs\" \/>\n<meta property=\"og:description\" content=\"Accept files in Logical Forms, set types, per-file size and count limits, and understand staging, download-link access and cleanup.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/\" \/>\n<meta property=\"og:site_name\" content=\"Logical Forms\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-27T06:07:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-options.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/file-upload-field\\\/\",\"url\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/file-upload-field\\\/\",\"name\":\"File Upload field | Logical Forms Docs\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/file-upload-field\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/file-upload-field\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/logicalforms.io\\\/wp-content\\\/uploads\\\/sites\\\/14\\\/2026\\\/11\\\/lf-beta37-upload-options.webp\",\"datePublished\":\"2026-11-19T09:22:50+00:00\",\"dateModified\":\"2026-11-27T06:07:26+00:00\",\"description\":\"Accept files in Logical Forms, set types, per-file size and count limits, and understand staging, download-link access and cleanup.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/file-upload-field\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/file-upload-field\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/file-upload-field\\\/#primaryimage\",\"url\":\"https:\\\/\\\/logicalforms.io\\\/wp-content\\\/uploads\\\/sites\\\/14\\\/2026\\\/11\\\/lf-beta37-upload-options.webp\",\"contentUrl\":\"https:\\\/\\\/logicalforms.io\\\/wp-content\\\/uploads\\\/sites\\\/14\\\/2026\\\/11\\\/lf-beta37-upload-options.webp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/file-upload-field\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation\",\"item\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"File Upload field\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/#website\",\"url\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/\",\"name\":\"Logical Forms\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"File Upload field | Logical Forms Docs","description":"Accept files in Logical Forms, set types, per-file size and count limits, and understand staging, download-link access and cleanup.","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:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/","og_locale":"en_US","og_type":"article","og_title":"File Upload field | Logical Forms Docs","og_description":"Accept files in Logical Forms, set types, per-file size and count limits, and understand staging, download-link access and cleanup.","og_url":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/","og_site_name":"Logical Forms","article_modified_time":"2026-11-27T06:07:26+00:00","og_image":[{"url":"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-options.webp","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/","url":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/","name":"File Upload field | Logical Forms Docs","isPartOf":{"@id":"https:\/\/oddlylogical.com\/logical-forms-old\/#website"},"primaryImageOfPage":{"@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/#primaryimage"},"image":{"@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/#primaryimage"},"thumbnailUrl":"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-options.webp","datePublished":"2026-11-19T09:22:50+00:00","dateModified":"2026-11-27T06:07:26+00:00","description":"Accept files in Logical Forms, set types, per-file size and count limits, and understand staging, download-link access and cleanup.","breadcrumb":{"@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/#primaryimage","url":"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-options.webp","contentUrl":"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-beta37-upload-options.webp"},{"@type":"BreadcrumbList","@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/file-upload-field\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/oddlylogical.com\/logical-forms-old\/"},{"@type":"ListItem","position":2,"name":"Documentation","item":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/"},{"@type":"ListItem","position":3,"name":"File Upload field"}]},{"@type":"WebSite","@id":"https:\/\/oddlylogical.com\/logical-forms-old\/#website","url":"https:\/\/oddlylogical.com\/logical-forms-old\/","name":"Logical Forms","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/oddlylogical.com\/logical-forms-old\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/docs\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":5,"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/docs\/212\/revisions"}],"predecessor-version":[{"id":778,"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/docs\/212\/revisions\/778"}],"wp:attachment":[{"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/doc-categories?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}