You need to send AJAX call first and when you receive the response trigger the file upload programatically.
So your submit button would be like:
<button type="submit" value="Submit" name="submit" onclick="return submit()">Submit File</button>
Your submit
function should return false
to prevent form submission.
And then submit the form inside your AJAX response.
document.myform.submit();
Replace myform
with name of your form.