I do not think that you can make progress in loading on a standard form.
So, I have not tested this, but why not submit the form via AJAX? You can upload files using the FormData object, which can handle multiple requests for upload.
Something like this might work:
// grab the form you want to submit. var formElement = document.getElementById("myFormElement"); // make an xhr object var request = new XMLHttpRequest(); // track progress request.upload.addEventListener('progress', progressHandler, false); // setup request method and url request.open("POST", formElement.action); // send the request request.send(new FormData(formElement));
You will need to listen to the server’s response and do what it tells you, redirect or handle failures or something else. But I think this should work. The server you are sending to is probably not worried if it is an xhr request or a standard browser request.
And it should work in all modern browsers.
See documents in FormData .
And here is a link to these details , how to track progress when loading ajax.
Alex wayne
source share