загрузка файла в Grails

Я пытаюсь загрузить файл в Grails в моем GSP у меня есть:

<g:form id="update" url="[action: 'updateStatus',]">
     <g:textArea name="message" value="" cols="3" rows="1"/><br/>
     <g:textField id="tagField" name="tag" value=""/><br/>
     <input id="inputField" type="file" name="myFile" enctype="multipart/form-data" />
     <g:submitButton name="Update Status"/>
 </g:form>

В моем контроллере у меня есть:

 def updateStatus(String message) {

        if (params.myFile){
            def f = request.getFile('myFile')

        }

Файл запроса get не выполняется с этой ошибкой:

No signature of method: org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper.getFile() is applicable for argument types: (java.lang.String) values: [myFile]

Любые идеи, почему это так, как я имею и использую getFile в других моих контроллерах, который работает нормально.

Ответы на вопрос(3)

Ваш ответ на вопрос