Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <input type="file" accept="text/xml" id="myFile1">
  2. <button on-click = "uploadFile() type="button">Upload</button>
  3.  
  4. <script>
  5.  
  6. function uploadFile(){
  7.  
  8. var file = document.getElementById("myFile1").files[0];
  9.  
  10. var location="/src/data/";
  11.  
  12. }
  13.  
  14. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement