With error
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/file_upload", {
label: {
text: "Upload a file"
},
name: "file-upload-with-error",
error_message: "Please upload a file"
} %>
<%= render "govuk_publishing_components/components/file_upload", {
label: {
text: "Upload a file"
},
name: "file-upload-with-error",
error_message: "Please upload a file"
} %>