A client-side JavaScript upload component that accepts many input types, supports async transfers, image optimization, and accessibility on desktop and mobile browsers.
Overview
FilePond is a JavaScript library for adding file uploads to web applications. It accepts directories, files, blobs, local and remote URLs, and data URIs. Users can drop files, pick from the filesystem, paste from the clipboard, or add files through the API.
Uploads can run asynchronously over AJAX, including chunked uploads. Files can be base64-encoded for traditional form posts when using the encode plugin. The interface is built for assistive technology and keyboard navigation, with testing noted against tools such as VoiceOver and JAWS.
Image handling includes resizing, cropping, filtering, and correcting EXIF orientation on the client to reduce server load. The control scales to available space and is intended to work on mobile and desktop. Optional plugins extend validation, previews, transforms, compression, and integration with the separate Pintura image editor.
The core is vanilla JavaScript. Adapters exist for React, Vue, Angular, Svelte, and jQuery. You can install via npm or load from a CDN. Pintura is offered as a companion product for richer in-browser editing tied into FilePond.
Key features
- Drag, drop, browse, paste, and API file sources
- Async AJAX uploads with chunking support
- Client-side image resize, crop, and EXIF fix
- Accessible UI with keyboard navigation
- Responsive layout for mobile and desktop
- Plugin ecosystem for validation and previews
- Framework adapters for major front-end stacks
- Single or multiple file modes with reordering
Use cases
- Multi-file upload areas in web forms
- Profile picture pickers with fixed aspect ratio
- Image-heavy forms with client-side optimization
- Accessible file inputs in SPAs and sites