With file accept
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/file_upload", {
label: {
text: "Upload an image"
},
name: "file-upload-specific",
accept: "image/*"
} %>
<%= render "govuk_publishing_components/components/file_upload", {
label: {
text: "Upload an image"
},
name: "file-upload-specific",
accept: "image/*"
} %>