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 Example Code Code snippet to illustrate your question axios.post("/api/videos",{ytVideosList,data:{customFunction:"AddVideoList"}}...
Instead it seems like you are deliberately passing an array- why don't you send the second string in the same array? params:{start_date:moment().subtract(6,'d').format('YYYY-MM-DD'),end_date:moment().format('YYYY-MM-DD'),measurement:'unique',where:JSON.stringify([["Campaign Name"...
Describe the issue I need to send an array with DELETE method: like: { "data": [{ "type": tag", "id": "1" }] } instead of an Array axios sends: data[]{ "type": tag", "id": "1" } axios puts an object outside of an array. Example Code DELE...
import fs, { Stats } from "fs"; import { NextRequest, NextResponse } from "next/server"; import path from "path"; import { ReadableOptions } from "stream"; function streamFile(path: string, options?: ReadableOptions): ReadableStream<Uint8Array> { const downloadStream = fs.createReadStrea...