GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 93 forks source link

Scaffolding does not correctly handle multipart forms #118

Open pledbrook opened 9 years ago

pledbrook commented 9 years ago

This is a Grails issue. The scaffolding doesn't handle requests of type multipartForm, only form. So when a user updates a user profile with an image, Grails attempts to load a save or update view. Neither of which exist.

A quick fix is to register the multipart form content type against form rather than multipartForm. Another option is to modify the scaffolding to handle multipartForm correctly.