sarbogast / grails-bootstrap-file-upload

Grails Plugin to integrate Sebastian Tschan's Jquery File Upload
http://grails.org/plugin/bootstrap-file-upload
Apache License 2.0
33 stars 25 forks source link

Unresolved Image class in Groovy #24

Open mapbpk opened 10 years ago

mapbpk commented 10 years ago

Hi,

I am running grails 2.3.3 & groovy 2.1 and have included these additional lines into the BuildConfig:

In dependencies:

    compile 'org.imgscalr:imgscalr-lib:4.2'

And in plugins:

    //PLUGIN FOR MULTIPLE FILE UPLOAD....
    compile ":jquery-ui:1.10.3"
    compile ":twitter-bootstrap:3.1.1"
    compile ":bootstrap-file-upload:2.1.2"

Using the integration part of the installation instructions I have managed to get the file upload interface controls working on a web page with the "bsfu:fileUpload" command.

Then using the 'File Handling' I have cut and pasted the upload and other action/controller code into my controller.

I now have a problem as the controller is failing to compile with an error "Groovy: unable to resolve class Image" - 'Image' being the domain object used in the upload action provided in the configuration documentation.

What step have I missed out - is there another dependency or plugin I should include?

-mike

mgkimsal commented 9 years ago

Not the original author, and I know it's a year late... but you'll need to provide your own Image class to work with this (or adapt the sample code to do what you want)

mapbpk commented 9 years ago

Thanks for your reply - have made progress via another route. On 23 Feb 2015 17:39, "Michael Kimsal" notifications@github.com wrote:

Not the original author, and I know it's a year late... but you'll need to provide your own Image class to work with this (or adapt the sample code to do what you want)

— Reply to this email directly or view it on GitHub https://github.com/sarbogast/grails-bootstrap-file-upload/issues/24#issuecomment-75591600 .