Single Image Upload example
With errors on page
How it looks (preview)
Image (required)
Uploaded image
File name: No10DoorAjar-2.jpg,
Alt text: Some optional text that describes the image
Images must be 960px by 640px
How to call this example
<%= render "components/single_image_upload", {
id: "single-image-upload-with-errors-on-page",
name: "single-image-upload-with-errors-on-page",
image_alt: "Some optional text that describes the image",
page_errors: true,
image_src: "https://assets.publishing.service.gov.uk/media/11aa22bbbbbb33cccccccccc/No10DoorAjar-2.jpg",
filename: "No10DoorAjar-2.jpg,",
image_cache: "1686052895-990540429428995-0004-6416/No10DoorAjar-2.jpg"
} %>