How to send a file via Axios to Laravel
You have to create a FormData object and append the image file.
methods: { 'successUpload': function (file) { let data = new FormData(); data.append('file', document.getElementById('file').files[0]); axios.post('/Upload/File',data).then(function (response) { console.log(response.data); }); }}
An example is here.
Let me know if that works.