can i send file inside a json through ajax:
colors: [
{_id: "5bec42f02797800f447241d1", color: "#777", image: File(79666)},
{_id: "5bec8cf91fb21b3a2477d817", color: "#566", image: File(79666)}
]
If not how to send this data through ajax.
code:
formData.append('colors', JSON.stringify(data));
i am getting data.colors[0].image as {} while sending