jeudi 28 décembre 2017

How to post a file(pdf,doc) in axios service along with JSON data

I want to send PDF/Docs files in axios service along with other JSON data. I have refered (Ajax post a file from a form with Axios) but it only sends file without any JSON data.

As we can see that the field value in http request is object which is actually a FormData but it shows empty here and not retrievable on server side (Laravel 5.4)

Please suggest



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2E9tlRR
via IFTTT

Aucun commentaire:

Enregistrer un commentaire