Skip to main content

retryEnhancer

Package​

Installation​

npm install @rpldy/retry

OR

npm install @rpldy/retry-hooks

Details​

To enable retries for your Uploady instance, you need to use the provided (uploader enhancer): retryEnhancer.

Example​

import Uploady from "@rpldy/uploady";
import { retryEnhancer } from "@rpldy/retry-hooks";
import UploadButton from "@rpldy/upload-button";

const App = () => {
return <Uploady
destination={{ url: "my-server.com/upload" }}
enhancer={retryEnhancer}
>
<UploadButton/>
</Uploady>;
};