A flexible JavaScript File Upload Component that works with every stack

FilePond uploads anything you throw at it, and offers a great, accessible, silky smooth user experience.

Get Started View on GitHub

Easily integrates with your favorite frameworks

The FilePond web component works with any JavaScript framework…

…and thanks to Shadow DOM, it plays nicely with CSS frameworks too.

Highlights

A customelement that just works

The <file-pond> custom element feels right at home on a classic webpage…

<form action="/upload" method="POST">
    <file-pond>
        <label for="my-file">Drop files here</label>
        <input id="my-file" type="file" name="docs" />
    </file-pond>
    <button type="submit">Upload</button>
</form>

<script type="module">
    import { defineFilePond } from 'filepond';
    import { locale } from 'filepond/locales/en-gb.js';
    defineFilePond({ locale });
</script>

…and turns into a <Component> when used with a JavaScript framework.

import { defineFilePond } from 'filepond';
import { locale } from 'filepond/locales/en-gb.js';
defineFilePond({ locale });

export default function App() {
    const [myEntries, setMyEntries] = useState<FilePondEntry[]>([]);
    return (
        <file-pond entries={myEntries}>
            <label htmlFor="my-file">Drop files here</label>
            <input id="my-file" type="file" name="docs" />
        </file-pond>
    );
}

Natural Motion Engine

The layout engine animates elements to new positions using the power of springs.

The user interface is automagically animated no matter the CSS layout.

Springyness

Easily Extendable

Extend FilePond with 24 ready made extensions.

Quickly build store, transform, and validation extensions, or start from scratch and create a fully custom extension.

Polished Media Previews

If the browser can present it, so can FilePond.

Using the appendEntryImageView and appendEntryVideoView template functions FilePond can render media previews inside file entries.

When possible previews are rendered on a separate thread.

Configure how previews are rendered inside the entry tile.

Headless Mode

Use FilePond without a user interface. Useful for programmatic processing of files or when building a custom UI on top of FilePond core.

import { createFilePondEntryTree, createExtensionManager } from 'filepond';
        
const entryTree = createFilePondEntryTree();

const extensionManager = createExtensionManager(entryTree);

entryTree.entries = [
    new File(/* */)
];

Light and Dark theme

FilePond uses CSS color-scheme to make switching between light and dark mode super easy.

html {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    html {
        color-scheme: dark;
    }
}

Style with parts and custom properties

Powerful templating

Palls with Pintura

FilePond integrates beautifully with Pintura unlocking the perfect image editing experience for your users.

  • Five minute install
  • Set crop masks and guides
  • Control quality with fixed aspect ratios
  • Rotate, resize, and flip images
  • Annotate, decorate, and redact Images
  • Finetune image colors
  • A fluid user experience like FilePond

Learn more about Pintura

Pintura integration code