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
Post a Comment