Convert URL sources into Files.

import { defineFilePond } from 'filepond';
import { locale } from 'filepond/locales/en-gb.js';
import { URLLoader } from 'filepond/extensions/url-loader.js';

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

Configuration

The URLLoader extension accepts an option object of type URLLoaderOptions which defines the properties below.

actionLoad

Action to run to trigger the load operation, defaults to 'load'.

actionLoad?: string

actionAbort

Action to run to abort the load operation, defaults to 'abort'.

actionAbort?: string

getBaseName

Hook that runs when determining the name for a file. Defaults to () => 'Untitled'.

getBaseName?: (entry: FilePondEntry, blob: Blob) => string

mimeTypeMap

An object with key value pairs describing mime type relation to extension.

mimeTypeMap?: { [key: string]: string; }

fetchHead

Fetch remote HEAD to get file content length and type so meta data is updated sooner, defaults to true.

fetchHead?: boolean

parallel

Maximum number of URLs to load in parallel, defaults to 2.

parallel?: number

useWebWorkers

Determines if we should use WebWorkers for the XMLHttpRequest, defaults to true.

useWebWorkers?: boolean

willRequestWithOptions

Intercept options sent to XMLHttpRequest with RequestHook.

willRequestWithOptions?: RequestHook