Skip to content

Instantly share code, notes, and snippets.

@andreaskc
andreaskc / gist:1219451
Created September 15, 2011 14:51 — forked from jkuehn/gist:786448
Grails Service for GridFS access
package net.saberco
//Reworked by Andy Kallenbach, SaberCo.net, September 17, 2011
//Refactored saveFile
//Fixed saving extra data fields along with file
//Need to finish an updateFile to overwrite an existing file
import com.mongodb.gridfs.GridFS
import eu.medsea.mimeutil.detector.MagicMimeMimeDetector
import org.springframework.web.multipart.commons.CommonsMultipartFile