Search code examples
javascriptgoogle-chromeform-data

FormData.get function is undefined


FormData.get is undefined in Chrome

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

enter image description here


Solution

  • By default, Chrome does not support the .get() method, as well as delete, get, getAll, has, and set. Although you can enable that functionality by activating an experimental flag, note from MDN:

    [2] Chrome support for methods other than append is currently behind the "Enable Experimental Web Platform Features" flag.

    For activating flags in Chrome you can go to the following link:

    chrome://flags/#enable-experimental-webkit-features