below the input * bool $required — whether the field is required; default false * bool $multiple — whether to allow multiple file selection; default false * string|null $id — override the id attribute (defaults to $name) * string|null $fieldName — validation field name for HTMX inline validation ('couverture', 'note_intention', 'tfe', 'annexes') */ $accept = $accept ?? ''; $hint = $hint ?? null; $hintRaw = $hintRaw ?? false; // when true, $hint is emitted as raw HTML $required = $required ?? false; $multiple = $multiple ?? false; $id = $id ?? $name; $fieldName = $fieldName ?? $name; // validation field name $previewId = 'fp-' . htmlspecialchars($id); // Determine HTMX POST endpoint for inline file validation if (defined('ADMIN_MODE') && ADMIN_MODE) { $validateUrl = '/admin/validate-file-fragment.php'; } else { $validateUrl = '/partage/validate-file-fragment'; } ?>
data-preview="">