You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sync(e) {
e.preventDefault();
this.files2upl = e.target.files;
}
/*
Submits files to the server
*/
submitFiles() {
/* Initialize the form data */
let formData = new FormData();
/*
Iteate over any file sent over appending the files
to the form data.
*/
for (var i = 0; i < this.files2upl.length; i++) {
let file = this.files2upl[i];
this.log(file.size + ' '+file.name);
formData.append("files", file, file.name);
}
//redaxios didnt upload anything
//this.axios
this.redaxios
.post(this.vars.servurl + "/file/uploadfiles2", formData, {
headers: {
"content-type": "multipart/form-data",
token: this.vars.token
}
})
}
The text was updated successfully, but these errors were encountered:
Jacknq
changed the title
post multiple files not woking as expected
post multiple files not working as expected
Apr 16, 2021
hi,
when posting files via axios everything works as expected, once i switch to redaxios, the data were not send and serialized same way..
The text was updated successfully, but these errors were encountered: