I recently added Golden Retriever to our application in order to support resumable multipart uploads with AWS S3. The uploads are working as expected and resume the same upload from where it left off, but there’s one small issue: the upload button on the status bar is now appearing when restoring an upload. The source of that error appears to be on what is currently line 208 in StatusBarUI.jsx
(can’t link to it, but it is line 208 in version 3.14.1 for future reference), where having any recovered state ensures that that button will render, even if hideUploadButton
is true
.
// a subset of our Uppy configuration
new Uppy()
.use(StatusBar, {
target: '#uppy-progress',
hideAfterFinish: false,
hideUploadButton: true,
hideRetryButton: true,
showProgressDetails: true,
})
.use(GoldenRetriever)
We always have hideUploadButton: true
in our StatusBar
configuration and never want or expect it to be there. I would think that this is likely a very small bug; if it’s not and this behavior is intended, then it would be great to learn more about why that is, any other context, and what the best approach would be here.
If it is a bug, the fix seems pretty simple – rework the boolean logic so that recoveredState
on the line above is replaced with recoveredState && !hideUploadButton
(or an equivalent boolean expression). I can open a PR to fix this issue if my reading of the behavior is correct. Thanks so much!