1//you have to have the form tag in this format
2<form id="myFunction" onClick= { myFunction } >
3 <input type="file" name="fileToUpload" id="myFunction" />
4</form>
5
6//from there you would have to create a function
7function myFunction() {
8 document.getElementById("myFunction").submit();
9 }
10//if this does not work, start to pray lol and do a lot of digging in
11//the browser, good luck !
12