Can I append an array to FormData in JavaScript? || How do you append data to an array As Techno Hub

AsTechno Hub
AsTechno Hub
4.2 هزار بار بازدید - 2 سال پیش - Here is the code for
Here is the code for the append array of multipal objects in send FormData

for (var i = 0, valuePair; valuePair = collection[i]; i++)
   for (var j in valuePair) fd.append(j, valuePair[j]);

That's assuming (perhaps falsely) that where you're saying 'id' as the object index is in fact the NAME, not an actual ID... though that would beg the question why not just have an object of names instead of an array?

Can I append object in FormData?
How do I pass a list of objects in FormData?
How do I append a FormData?
How do you append data to an array?
What is FormData object in JavaScript?
What is a multipart form data?
2 سال پیش در تاریخ 1400/12/03 منتشر شده است.
4,255 بـار بازدید شده
... بیشتر