concept filesystem in category grails
appears as: filesystem, filesystem, filesystems

This is an excerpt from Manning's book Grails in Action, Second Edition.
You have two ways to handle file uploads in a controller, and the one you select depends on what you want to accomplish. If you want to store the image in a domain class, your best option is to use a command object. The following listing shows how to use a command object for photo uploads. We look at storing images on the filesystem in the next subsection.
If you want to store the uploaded image in the filesystem rather than in the database, you need access to the implementation of Spring MultipartFile that backs the upload process.