1. Component Guide
  2. Form file upload
  3. With file accept
Form file upload example

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/*"
} %>