R
Reactiflux

✅ – Script – 23-48 Nov 13

✅ – Script – 23-48 Nov 13

SScript11/13/2022
How to append object to form data
const formData = new FormData();
formData.append("profileId", data.profileId);
formData.append("socials", data.socials);
const formData = new FormData();
formData.append("profileId", data.profileId);
formData.append("socials", data.socials);
data.socials is an object while data.profileId is a string Im trying to pass it as formData but data.socials passes an [object Object] as seen in the image below
UUUnknown User11/13/2022
Message Not Public
Sign In & Join Server To View
SScript11/13/2022
it says "[object Object]" is not valid JSON { value: "guerilla testing", label: "Guerilla testing" } this is how the object looks like
UUUnknown User11/14/2022
2 Messages Not Public
Sign In & Join Server To View
SScript11/14/2022
that makes sense nice that works i'll parse it on my backend thanks jstn
UUUnknown User11/14/2022
3 Messages Not Public
Sign In & Join Server To View

Looking for more? Join the community!

R
Reactiflux

✅ – Script – 23-48 Nov 13

Join Server