I came here because I could not figure out why my nodeJS server could not read the body that was sent by the htmx form. Turns out, I did the same mistake as you did at 6:30: the Form Data contained the right fields/values, but the body was an empty object so every property was undefined. Including app.use(bodyParser.urlencoded({ extended: true })); fixed the issue and saved me an hour or more, thank you very much for sharing the fix !
I came here because I could not figure out why my nodeJS server could not read the body that was sent by the htmx form. Turns out, I did the same mistake as you did at 6:30: the Form Data contained the right fields/values, but the body was an empty object so every property was undefined.
Including app.use(bodyParser.urlencoded({ extended: true })); fixed the issue and saved me an hour or more, thank you very much for sharing the fix !
You're most welcome 😊
Good explanation.
The includes one is definitely the one for me. Thanks :)
Glad you found it useful
hello, I liked the video, and the include was new to me, so thanx! - yet i was drawn to the video for the PUT method. did I miss that?
Glad you found the video useful ☺️. Sorry, I didn't demo PUT as it follows the same rules as normal PUT requests using the hx-put attribute
ah, ok, i get it, thx! :) @@DevTalk
Get the Complete HTMX Course (Zero to Pro) for 90% off www.udemy.com/course/the-complete-htmx-course/?couponCode=D6D5855A7394FAD42284