upload - How to store uploaded file in project folder with javascript -


i had research examples found not clear couldn't understand how save files in project folder. library use requires there should required files in same folder other main inputs. so, have save uploaded files same folder. can fill function?

<input type="file" accept="text/xml" id="myfile1"> <button on-click = "uploadfile() type="button">upload</button>  <script>  function uploadfile(){  var file = document.getelementbyid("myfile1").files[0];  var location="/src/data/";  }  </script> 


Comments

Popular posts from this blog

vue.js - Create hooks for automated testing -

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

serial port - hub4com OVERRUN Error -