Store the file object using a form post.
import { defineFilePond } from 'filepond';
import { locale } from 'filepond/locales/en-gb.js';
import { FormPostStore } from 'filepond/extensions/form-post-store.js';
defineFilePond({
locale,
extensions: [
// Add the FormPostStore extension
FormPostStore
]
})
Configuration
The FormPostStore extension accepts an option object of type FormPostStoreOptions which defines the properties below.
url
Server URL, defaults to empty string
url?: string
name
The name of the form field being submitted with the form POST, defaults to 'entry'
name?: string
fetchHead
when restoring a file will first do request head so we have file info, defaults to true
fetchHead?: boolean
willRequestWithOptions
Intercept options sent to XMLHttpRequest
willRequestWithOptions?: RequestHook