DEV Community

Discussion on: How to Upload Multiple File with Progress Bar (ReactJS + Redux and ExpressJS)

Collapse
 
devinekadeni profile image
Devin Ekadeni

Actually I also implemented this upload in my company, in my case I put the close button on the title upload box, but it will only be shown when all of the upload is finish (whether success or fail). In my case I would just remove all of the data from uploadProgressRedux when the close button is clicked and unmount the upload progress box.
But if you want to be able to close it while it's uploading, IMO you can try to add the close button and when it's clicked, unmount the upload progress box but don't have to remove the data from uploadProgressRedux. That way the progress will still be running on the background (haven't try it tho).
But personally thinking this would be bad for user experience, since they didn't know the upload progress status. It would be better to encourage user not to close the upload progress box until it's finish

Collapse
 
leopintos10 profile image
leopintos10

Thank you very much for your quick answer kind sir!! I really apreciate it!