- Getting Started
- Uppy Server
- Custom Stores
- List & Common Options
- Writing Plugins
The GoldenRetriever plugin saves selected files in your browser cache (Local Storage for metadata, then Service Worker for all blobs + IndexedDB for small blobs), so that if the browser crashes, Uppy can restore everything and continue uploading like nothing happened. Read more about it on the blog.
1. Bundle your own service worker
sw.js file with Uppy GoldenRetriever’s service worker. If you’re using Browserify, just bundle it separately, for Webpack there is a plugin serviceworker-webpack-plugin.
2. Register it in your app entry point:
// you app.js entry point
Voila, that’s it. Happy retrieving!