<p dir="auto">Hi,</p>
<p dir="auto">This might be duplicated question, but I have tried all possible research on google and blogs to get a solution to fix it, so if you already know the answer please help me.</p>
<p dir="auto">I am trying to send an array of objects to Axios post request, but the payload empty array even if I have the data in array as I checked with console.log</p>
<p dir="auto"><code class="notranslate">axios.post("/api/videos", { ytVideosList, data: { customFunction: "AddVideoList" } })</code></p>
<p dir="auto">where ytVideoList is [{json-obj1},{json-obj2}, .....] etc which is empty [] at payload side, so i am not able to insert data in my database table. I hope everything is clear if you know the answer please respond as soon as possible.</p>
<p dir="auto">versus just using axios({...}) to make requests?</p>