[Vuejs]-Getting image null vuejs symfony

0👍

It is a bit unclear where does this.file come from. You can get file input just easy way.

const selectedFile = document.querySelector('input').files[0];
formData.append(selectedFile);

For more information please have a look MDN.

Leave a comment