Answer the question
In order to leave comments, you need to log in
How to load vuejs file locally?
Good day.
There is a file upload field, the file is saved to the file1 variable (let's say), and how to write the submit button to send the file along the path on my PC, for example, to C:/users/ratat/download/papka
submit: function () {
let data = new FormData();
data.append('file', this.file1);
axios.post('/file', data)
.then(function(res) {
console.log(res);
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question