I have setup an HTML5 drag and drop upload into my site. The problem that I have is when a user is uploading a large file, they must wait for the upload to finish before navigating and using the rest of the site.
So, what I’d like to do is allow the user to drag files to the main site and then have it automatically open a new window and start the upload there so they can still use the rest of the site while the upload is happening. Anyone have and advice on how to accomplish this or if it can even be done?
You should be able to open the new window when the drop event occurs. Below is a full example.
First, we have a file upload region and events that handle the drag and drop:
In the pop-up window (
upload.html), we get the files from the parent window and begin the upload:Give this a try and hopefully it helps solve the problem.