I want to store multiple image in Grails application. So, command object of grail support multiple MultipartFile files.
Asked
Active
Viewed 204 times
1 Answers
1
Did you try something like that?
class ImageUploadCommand implements Validateable {
List<MultipartFile> images
}

Anton Hlinisty
- 1,441
- 1
- 20
- 35
-
2I wrote the relevant data binder and I am a little surprised that works myself. ;) – Jeff Scott Brown Apr 02 '18 at 15:18
-
@JeffScottBrown I successfully use the mentioned approach in my project :) – Anton Hlinisty Apr 02 '18 at 15:38
-
There is also a built in converter to bind `MultipartFile` to `byte[]`. – Jeff Scott Brown Apr 02 '18 at 15:54