JavaScript – FormData initialized from a form element is empty

Problem When you try to initialize a FormData object from a form element, it’s empty. There are no keys or values whatsoever. For example, let’s say you have a form called movieForm and you’re trying to post its data with fetch(): When you look at the request, it has the right Content-Type, but no data: … Read more