|
@@ -6,7 +6,7 @@ author: renee
|
|
published: true
|
|
published: true
|
|
---
|
|
---
|
|
|
|
|
|
-We are proud to present Uppy `0.20`. This one focuses on React and Redux support, adding storage expirations to `RestoreFiles` (The Golden Retriever) and upload retries. Enjoy!
|
|
|
|
|
|
+We are proud to present Uppy `0.20`. This one focuses on React and Redux support, adding storage expirations to `GoldenRetriever` and upload retries. Enjoy!
|
|
|
|
|
|
## Uppy React components
|
|
## Uppy React components
|
|
|
|
|
|
@@ -119,11 +119,11 @@ uppy.use(DragDrop, {
|
|
|
|
|
|
## The Golden Retriever cleans up after itself
|
|
## The Golden Retriever cleans up after itself
|
|
|
|
|
|
-We recently released the `RestoreFiles` plugin, codenamed "Golden Retriever", which stores selected files on the client so that it can recover them after a browser crash. Previously, these stored files would stay around forever, and clog up the user's disk space. As of 0.20.0, files will be removed from client-side storage when they have been uploaded. Files that have had nothing happen to them for longer than 24 hours will be cleaned up automatically. This timeframe can be configured using the new `expires` option:
|
|
|
|
|
|
+We recently released the `GoldenRetriever` plugin, which stores selected files on the client so that it can recover them after a browser crash. Previously, these stored files would stay around forever, and clog up the user's disk space. As of 0.20.0, files will be removed from client-side storage when they have been uploaded. Files that have had nothing happen to them for longer than 24 hours will be cleaned up automatically. This timeframe can be configured using the new `expires` option:
|
|
|
|
|
|
```js
|
|
```js
|
|
const ms = require('ms')
|
|
const ms = require('ms')
|
|
-uppy.use(RestoreFiles, {
|
|
|
|
|
|
+uppy.use(GoldenRetriever, {
|
|
expires: ms('4 hours')
|
|
expires: ms('4 hours')
|
|
})
|
|
})
|
|
```
|
|
```
|
|
@@ -133,7 +133,7 @@ uppy.use(RestoreFiles, {
|
|
This will clean up files when Uppy runs, but perhaps not every page of your app uses Uppy. If a user selected some files, but then never came back to that same page, files could still hang around for a long time. To aid this, there's a new module that you can call to clean up Uppy's cache without needing an Uppy instance:
|
|
This will clean up files when Uppy runs, but perhaps not every page of your app uses Uppy. If a user selected some files, but then never came back to that same page, files could still hang around for a long time. To aid this, there's a new module that you can call to clean up Uppy's cache without needing an Uppy instance:
|
|
|
|
|
|
```js
|
|
```js
|
|
-const cleanup = require('uppy/lib/plugins/RestoreFiles/cleanup')
|
|
|
|
|
|
+const cleanup = require('uppy/lib/plugins/GoldenRetriever/cleanup')
|
|
cleanup()
|
|
cleanup()
|
|
```
|
|
```
|
|
|
|
|