Relative Content

Tag Archive for javascriptlaravelvue.jsaxiosvuejs3

Problem to send my formData instance via axios with content-type multipart/form -data

I’m working on vue3 and I want to send my form data which may contain a file image to my API via axios request but I still have a problem. If I inspect the formData instance, all values ​​are present but are ignored when my axios Content-Type header are set to multipart/form-data. I also use Pinia in my work to store my functions. Can someone help me please?

Problem to send my formData instance via axios with content-type multipart/form -data

I’m working on vue3 and I want to send my form data which may contain a file image to my API via axios request but I still have a problem. If I inspect the formData instance, all values ​​are present but are ignored when my axios Content-Type header are set to multipart/form-data. I also use Pinia in my work to store my functions. Can someone help me please?

Problem to send my formData instance via axios with content-type multipart/form -data

I’m working on vue3 and I want to send my form data which may contain a file image to my API via axios request but I still have a problem. If I inspect the formData instance, all values ​​are present but are ignored when my axios Content-Type header are set to multipart/form-data. I also use Pinia in my work to store my functions. Can someone help me please?