Skip to main content
Assets are all files (including) images the user can upload.

Retrieving Asset

If you have a single asset, or image in this case, you’d like to display. You must set the max_files = 1. This way you can retrieve the image through. If you don’t set a max_files then you must retrieve it using the array method.
<img src={{ hero_image }} alt={{ hero_image:alt }} />

Retrieving multiple images (array)

{{ gallery_images }}
    <img src="{{ url }}" alt="{{ alt }}" />
{{ /gallery_images }}

Allow only certain file types

Go to Validation and add: mimes:jpg,jpeg,png,webp For example you’d like only .zip files. You can write mimes:zip