Attach multiple files to form using formkit

148 Views Asked by At

I want to make a form using FormKit in vue.js that has an option to add multiple files, the problem is that when I add multiple="true" as the docs say it doesn't make it that I can add multiple files, here is the code that I done:

<FormKit
                type="file"
                name="file"
                multiple="true"
            />

but it doesn't allow the user to select more than one file only to change the original one

2

There are 2 best solutions below

1
On

Try this:

<FormKit
type="file"
name="file"
:multiple="true"/>
2
On

This should be working exactly as you have in your original example. Can you provide more information such as browser version?

Here is a screenshot and reproduction link of it behaving as expected: https://formkit.link/4308d7828ab90c9a1f41f45a3921afca

enter image description here