[Vuejs]-Why does my form uploads the image again?

0👍

The solution was strange, still don’t know why exactly it happens. Maybe it is an Inertia bug. So, after the request was submitted successfully just do this:

this.form.photo = this.author.photo;

this goes in its own method in Forms.js and to repeat myself, it is called in the onSuccess callback.

Leave a comment