Skip to content
Advertisement

Tag: qunit

How can i get data from FormData in javascript?

I need to read data from FormData? I try to read something like someFormatData[“valueName”] but it not working. options[“fileId”] or options[“file”] does not work. Also I try options.fileId same result: Answer If you take your FormData object you can use a few different methods on it… What you are looking for is or https://developer.mozilla.org/en-US/docs/Web/API/FormData Note that the get() method is

Advertisement