title: Scala Play 2.0.2 multiple file upload
body: <p>I am new to Play and scala. My requirement is to provide a browse button where we can select multiple files and upload those files. Here is code I have written:</p>
  
  <p>in the scala.html file:</p>
  
  <pre><code>&lt;input type="file" name="files" multiple="multiple" id="files" size="30"&gt;
  </code></pre>
  
  <p>in the Controller:</p>
  
  <pre><code>def upload = Action(parse.multipartFormData) { request =&gt;
    request.body.file("files").map { picture =&gt;
      import java.io.File
      val filename = picture.filename 
      val contentType = picture.contentType
      picture.ref.moveTo(new File("/tmp/picture"))
      Ok("File uploaded")
    }.getOrElse {
      Redirect(routes.Application.index).flashing(
        "error" -&gt; "Missing file"
      )
    }
  }
  </code></pre>
  
  <p>But I am not able to upload multiple files. Any idea what is the issue here?</p>