Persist upload when browsing the site

0

Is it possible to make a upload of files and enable site navigation by keeping it in background loading?

The normal thing to send a file is to lose progress when you exit the current page. I would like to know if there is a way to keep the navigation but the upload is not lost, is it possible?

    
asked by anonymous 18.04.2018 / 21:59

1 answer

0

If it's a Single Page Application, yes, because navigation does not make a new request for a new page, but only manipulates the DOM to change the HTML elements that are displayed. See more at: link

Otherwise you would have to "simulate" a SPA by implementing and invoking the uploading function in the largest possible context and letting your user "browse" without changing the pathname, just by displaying other HTML elements according to their interaction .

    
20.04.2018 / 14:27