0👍
You should change your data()
data() {
return {
form: this.$inertia.form({
file: '',
}),
}
},
and then call the post in this way
this.form.post(route('import.process'), {
//your logic
});
Source:stackexchange.com