You can simply create and submit the form after the redirect event has occurred, and the user will click the conf button. This is its essence: (not verified).
function uploadFile(file) { var form = new FormData(), xhr = new XMLHttpRequest(); form.append('media', file); xhr.open('POST', '/myurl/'); xhr.onprogress = function(e) { showProgress(); } xhr.onload = function(e) { showSuccessConf(); } xhr.send(form); } uploadFile(event.dataTransfer.files[0]);
source share