If we want to give the functionality to retry to all upload requests or some based on some condition, we can have something like this:
const uploadRef = useRef(null)
const reUpload = () => {
uploadRef.reUpload()
}
<Upload
ref={uploadRef}
customRequest={customRequest}
...
</Upload>