Grails

Groovy HTTP builder for sending multipart file.

I had two applications that communicate with each other through web-services. There I had a requirement to send multi-part file from one application to another. After searching I came out with the following solution and thought to share: [java] import org.apache.http.entity.mime.MultipartEntity import...

by Divya Setia
Tag: CommonsMultipartFile
31-Aug-2012

Grails

uploading multiple files with same name

A good binding feature in grails is that when you have multiple input fields with same name, they are available as a list in params. But this does not hold with html file input fileds. If you have multiple file input fields with same name, params.fieldName will not return a list but the first input field with name fieldName. This is due...

by Bhagwat Kumar
Tag: CommonsMultipartFile
18-Nov-2011