Properties

getBasename

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

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

getExtension

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

Hook that runs when determining the extension of a file. The default behavior derives the extension from the file mime type. Override this function or use mimeTypeMap if an extesion isn’t computed correctly.

getFilename

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

Hook that runs when determining the name of a file. By default combines the result of getBasename() and getExtension()

mimeTypeMap

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

An object with key value pairs describing mime type relation to extension. Defaults to undefined, example { 'application/ld+json': 'jsonld' }