I had a research about it but the examples that I found were not clear so I couldn't understand how to save files in project folder. The library that I use requires that there should be required files in the same folder other than the main inputs. So, I have to save the uploaded files to the same folder. Can you fill the 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>