{"id":5015,"date":"2026-10-15T20:00:00","date_gmt":"2026-10-15T19:00:00","guid":{"rendered":"http:\/\/docs.checkm8.systems\/?page_id=5015"},"modified":"2026-10-15T20:00:00","modified_gmt":"2026-10-15T19:00:00","slug":"file-upload-field","status":"publish","type":"page","link":"https:\/\/docs.checkm8.systems\/?page_id=5015","title":{"rendered":"Add a File Upload Field Safely"},"content":{"rendered":"<h2>Use case<\/h2>\n<p>Collect photographs of faults, site evidence, completed documents or other files attached to a submission.<\/p>\n<h2>Steps<\/h2>\n<ol>\n<li>Edit the required form.<\/li>\n<li>From the field library, add <strong>File Upload<\/strong>.<\/li>\n<li>Give it a precise label, such as \u201cUpload photograph of fault\u201d.<\/li>\n<li>In field settings, set the allowed file extensions to the types actually needed. For photographs, this might include JPG, JPEG, PNG or HEIC only if the site supports it.<\/li>\n<li>Set a maximum file size that suits mobile uploads and your hosting limits.<\/li>\n<li>Enable multi-file upload only if users genuinely need to attach more than one file and your installed version supports the setting.<\/li>\n<li>Make the field required only when evidence is mandatory for that submission route.<\/li>\n<li>If the upload should only appear for a fault, enable conditional logic and test both fault and no-fault routes.<\/li>\n<li>Save the form and submit a test file from a mobile device.<\/li>\n<\/ol>\n<h2>Security and privacy<\/h2>\n<p>Only accept the file types required for the workflow. Restrict form access where uploads may contain personal, client or site-sensitive information. Review who can access entries and uploaded files. Do not assume that hiding a file link on a page makes the underlying file private.<\/p>\n<h2>Troubleshooting<\/h2>\n<ul>\n<li><strong>File type rejected:<\/strong> check the allowed extensions and WordPress permitted MIME types.<\/li>\n<li><strong>File too large:<\/strong> reduce the image size or review the configured upload limit and server PHP limits.<\/li>\n<li><strong>Upload fails on mobile:<\/strong> test another network, reduce image size and review server logs.<\/li>\n<li><strong>File is missing from an email:<\/strong> check the notification settings and use a secure access route where appropriate rather than assuming an attachment is included automatically.<\/li>\n<\/ul>\n<p>Official references: <a href=\"https:\/\/docs.gravityforms.com\/file-upload\/\">File Upload Field<\/a> and <a href=\"https:\/\/docs.gravityforms.com\/file-upload-security\/\">File Upload Security<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use case Collect photographs of faults, site evidence, completed documents or other files attached to a submission. Steps Edit the required form. From the field library, add File Upload. Give it a precise label, such as \u201cUpload photograph of fault\u201d. In field settings, set the allowed file extensions to the types actually needed. For photographs, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":5002,"menu_order":15,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5015","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/pages\/5015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5015"}],"version-history":[{"count":0,"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/pages\/5015\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/pages\/5002"}],"wp:attachment":[{"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}