Hi all,

i'm developing a Grails web app that implements the Shiro Authentication
Framework.
I need to have a form to upload a simple image to store it remotely.

The GSP form that handles this is the following:


  

        
      File:
    
        
      
    
  


which translates into:


The controller handles this request with the code:

...
def uploadedFile = request.getFile('payload')

...

that raises the following exception:
No signature of method:
org.apache.shiro.web.servlet.ShiroHttpServletRequest.getFile() is applicable
for argument types: (java.lang.String) values: [payload]

It seems that the ShiroHttpServletRequest class does not support the
getFile() method, which is proper of the MultipartRequest class


Any suggestion?

Thanks a lot
Filippo

--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Shiro-Grails-Upload-File-tp6169778p6169778.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to