<form> <input type="file" id="fileSelect"/> <button type="button" onclick="doSubmit()">Submit</button></form>
123456