title: getting original file name of uploaded file grails
body: <p>I am getting the uploaded file using request.getFile("file") where "file" is the name of file input element in my gsp file. I am able to parse this file fine but when I try to get the file's original name, I encounter the following error </p>
  
  <p>No signature of method: org.springframework.web.multipart.commons.CommonsMultipartFile.getOriginalFileName() is applicable for argument types: () values: []
  Possible solutions: getOriginalFilename()</p>
  
  <p>This is my code:</p>
  
  <pre><code>def f = request.getFile("file")
  def name = f.getOriginalFileName()
  </code></pre>
  
  <p>Why can't I call the getOriginalFileName() method on 'f', I thought request.getFile() returned a MultipartFile object</p>