Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

283
Views
ReactJS: How to make file upload with PUT request survive when page refreshes?

I am building my ReactJS SPA (single-page-application) webpage that includes a file upload function. Sometimes users need to upload a large file (over 5 GB) and it can easily take up above 20 or 30 minutes.

Currently, an upload is achieved by HTTP PUT request, and when the user uploads a file in the /new-files page, a UI box component will appear, showing the progress bar for the upload process.

While the file is uploading, I want the users to be able to:

  1. Go to other pages (i am using react-router-dom), thus loading other components;
  2. browser refresh/ reload the page;

and when the user comes back to /new-files page or when the page reload finishes, the user can still see the upload in progress.

Right now, when I refresh the page, it kills the PUT request that is doing the file upload.

How can I make the file upload with PUT request survive over functional component reload or page reload?

Is it even possible?

Maybe it is not possible for file upload with PUT request to survive over manual page refresh.

But I think it is possible to let users be able to click open other page components and come back to the file-upload page and still see the progress bar continuing.

Any suggestions?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!