Convert Blob sources into Files.
The BlobLoader extension can be configured with the BlobLoaderOptions object.
import { defineFilePond } from 'filepond';
import { locale } from 'filepond/locales/en-gb.js';
import { BlobLoader } from 'filepond/extensions/blob-loader.js';
defineFilePond({
locale,
extensions: [
// Add the BlobLoader extension and configure with BlobLoaderOptions object
[BlobLoader, {
// add any mime types that can't be derived automatically by FilePond
mimeTypeMap: { 'application/ld+json': 'jsonld' }
}]
]
})