[Vuejs]-Vue/Laravel – uploading a file on update doesn't work

0👍

It looks like you’re accidentally passing the files boolean to the route array instead. Try updating your form opening to:

{!! Form::model($magazine, ['method' => 'PUT', 'route' => ['magazines.update', 'id' => $magazine->id], 'files' => true]) !!}

0👍

Your input field doesn’t have a name so that might be why the form won’t pick it up

Not sure why you are modifying the FormData. Any Reason you can’t just submit the <input> with the form instead of extracting it?

Try showing us how the form looks, the place where you put your image-upload component

Leave a comment