{"id":262,"date":"2026-10-17T14:16:41","date_gmt":"2026-10-17T14:16:41","guid":{"rendered":"http:\/\/plugin-docs.com\/?post_type=doc&#038;p=262"},"modified":"2026-10-18T20:34:04","modified_gmt":"2026-10-18T20:34:04","slug":"add-file-upload-fields","status":"publish","type":"doc","link":"https:\/\/dragwyb.com\/docs\/add-file-upload-fields\/","title":{"rendered":"Add File Upload Fields"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The <strong>File Upload<\/strong> field displays a file picker so a visitor can choose a file while filling in a form. In Smart Form Builder by Dragwyb 1.3.6, the field provides a label, instructional text, and a required option. The current implementation has important restrictions and does not show a complete file-transfer and storage path in the inspected submission workflow.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Add and configure the field<\/h2>\n\n\n<ol class=\"wp-block-list\">\n<li>Open your form in the drag-and-drop editor.<\/li>\n<li>Add the <strong>File Upload<\/strong> field from the <strong>Advanced Fields<\/strong> category.<\/li>\n<li>In <strong>Basic Settings<\/strong>, edit <strong>Field Label<\/strong> and optionally add <strong>Instructional Text<\/strong>.<\/li>\n<li>Enable <strong>Is Required?<\/strong> if the visitor must select a file for the form to pass field validation. The default is <strong>no<\/strong>.<\/li>\n<li>Save the form and review the field on the published page.<\/li>\n<\/ol>\n\n\n<h2 class=\"wp-block-heading\">Current field restrictions<\/h2>\n\n\n<ul class=\"wp-block-list\">\n<li>The rendered input advertises these extensions: JPG, JPEG, PNG, PDF, DOC, DOCX, and TXT.<\/li>\n<li>The PHP validation enforces a maximum file size of <strong>1 MB<\/strong>, despite an editor notice that says 2 MB.<\/li>\n<li>The MIME allowlist includes JPEG, PNG, PDF, and plain text, but not the common DOC or DOCX MIME types. Some files with advertised extensions can therefore be rejected.<\/li>\n<li>The inspected frontend handler serializes form values as JSON. No multipart upload transfer or file persistence routine was found in the inspected submission path.<\/li>\n<\/ul>\n\n\n<h2 class=\"wp-block-heading\">Before using file uploads in production<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Do not promise visitors that their files will be stored, attached to email, or available to administrators based on the field alone. The source inspection indicates the upload workflow needs further implementation and live testing. If file collection is essential, first correct the transfer, validation, storage, and access-control behavior, then verify it with allowed and rejected test files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Screenshot to add: [File Upload field Basic Settings]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add the File Upload field and configure its label, help text, and required status; review the current implementation limits before relying on uploads.<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":259,"menu_order":0,"template":"","class_list":["post-262","doc","type-doc","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":3,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/262\/revisions"}],"predecessor-version":[{"id":1202,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/262\/revisions\/1202"}],"up":[{"embeddable":true,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/259"}],"wp:attachment":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/media?parent=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}