#Unable to get form data from function form.get()

1 messages · Page 1 of 1 (latest)

hoary finch
unborn dome
#

make action an async function, then do ```js
const formData = await request.formData();

#

oh hadn't realized it was answered forgot to scroll down 😅

#

but your FormData actually isn't empty, you'll need to either use formData.get() or if you want to see everything at once you can use Object.fromEntries(formData)

hoary finch
#

Thank you @unborn dome . Yes I saw your comment. I thought may be we could read the formdata as is. Why is the data not shown though?

unborn dome