DEV Community

Discussion on: File upload using Laravel and Vue.js (The Right Way)

Collapse
 
distalshores profile image
Samuel Coll

Thanks for this! Very useful. For anyone else who had trouble handling the request data on the Laravel side, I had to set the Content-Type header in the Axios post method to application/json before I could decode it in the controller method.