{# Custom `photos` form field — a plain, controlled picker that replaces Grav's managed filepond/dropzone field on /post so post-form.js can convert HEIC before upload (see U4). It carries the same destination/accept/limit settings the server's uploadFiles() reads via the blueprint, but renders its own input and uploads through post-form.js, not FilePond. #} {% extends "forms/field.html.twig" %} {% block input %} {% set files = config.plugins.form.files|merge(field|default([])) %} {% set limit = not field.multiple ? 1 : (field.limit ?? files.limit ?? 4) %}