Store the file object by uploading it in chunks.
import { defineFilePond } from 'filepond';
import { locale } from 'filepond/locales/en-gb.js';
import { ChunkedUploadStore } from 'filepond/extensions/chunked-upload-store.js';
defineFilePond({
locale,
extensions: [
// Add the ChunkedUploadStore extension
ChunkedUploadStore
]
})
Configuration
The ChunkedUploadStore extension accepts an option object of type ChunkedUploadStoreOptions which defines the properties below.
url
Server URL
url?: string
chunkSize
Chunk size in bytes
chunkSize?: string | number
parallelChunks
Chunks to upload in parallel
parallelChunks?: number
retryDelays
How many milliseconds between retries
retryDelays?: Array
resume
Allow pause/resume
resume?: boolean
willRequestWithOptions
Intercept options sent to XMLHttpRequest
willRequestWithOptions?: RequestHook