[Vuejs]-Why is my laravel jetstream vue form request giving me a repose of null

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
});

Leave a comment