lookupPostParam returns always Nothing

141 Views Asked by At

In the Home.hs handler from the yesod-simple scaffold I added these lines to postHomeR:

fileDescriptionMaybe <- lookupPostParam "fileDescription"
let result = fromMaybe "(empty)" fileDescriptionMaybe

Then in the homepage.hamlet template I use this result with the variable interpolation '#{result}'.

However the result is always "(empty)". How can I solve this?

0

There are 0 best solutions below