Skip to content

Input File

When loading a file in the input field, it must be "frozen", otherwise the Form will simply skip it and not will add neither to values nor changes. A detailed explanation can be found Here

        <input type = "file" @change = "onInput($[0])"/>
<script setup>

import {useInputState} from "jenesius-vue-form"
const props = defineProps();
const {input} = useInputState(

function onInput(file) {
	input.change(Object.freeze(file)) // Object.freeze


This example is simplified (no checks, etc.). As you can see from the example, we use function Object.freeze (More) to "freeze" the file object. This action allows the form to process it as a single entity, without simplification.