Skip to content
Advertisement

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:

JavaScript

Advertisement

Answer

If you take your FormData object you can use a few different methods on it… What you are looking for is

JavaScript

or

JavaScript

https://developer.mozilla.org/en-US/docs/Web/API/FormData

Note that the get() method is not fully supported on all browsers.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement