grails record upload problems
i'm perplexing heed record upload formula grails website, i'm controlling problems. i'm controlling same formula found . here code:
<g:form action="upload" method="post" enctype="multipart/form-data">
<input type="file" name="myfile" />
<input type="submit" value="upload" />
</g:form>
and
def upload = {
def f = request.getfile('myfile')
if(!f.empty) {
flash.message = 'success'
}
else {
flash.message = 'file can't empty'
}
}
i'm receiving following blunder during runtime:
message: signature method: org.mortbay.jetty.request.getfile() convenient justification types: (java.lang.string) values: {"myfile"}
caused by: groovy.lang.missingmethodexception: signature method: org.mortbay.jetty.request.getfile() convenient justification types: (java.lang.string) values: {"myfile"}
it appears associated open configuration. open does seem injecting multiparthttpservletrequest
, ask doesn't have suitable method. i only combined applications controlling grails create-app
. i have run-down resources.groovy file. i'm controlling grails 1.0.3.
any assistance many appreciated. grails website creates feeling easy.
Comments
Post a Comment