Accept files from a specified file input element

import { defineFilePond } from 'filepond';
import { locale } from 'filepond/locales/en-gb.js';
import { FileInputSource } from 'filepond/extensions/file-input-source.js';

defineFilePond({
    locale,
    extensions: [
        // Add the FileInputSource extension
        FileInputSource
    ]
})

Configuration

The FileInputSource extension accepts an option object of type FileInputSourceOptions which defines the properties below.

element

An HTMLInputElement or a QueryString selector

element?: string | HTMLInputElement

resetFilesOnAdd

Should we reset the input everytime a FileList is added

resetFilesOnAdd?: boolean

insertIndex

Where to add new files, defaults to index 0

insertIndex?: number