Kevin Powell - CommunityKP-C
Kevin Powell - Community14mo ago
12 replies
Faker

What is the purpose of the instance of FormData?

Hello guys, sorry to disturb you all; I have just learnt about
FormData
. I know it is mostly used for file uploads. But I don't understand how does it work, like sometimes peiple use an instance of FormData like formData to append something. For e.g: formData.append('name', value)

I don't understand when do we use this formData.append ?

Sometimes the form element reference is passed directly into the FormData constructor and we no longer need it... I'm a bit confuse of how it work, what if we need to upload multiple files for e.g.
Was this page helpful?