title: Play Framework - only getting file content from Ok.sendFile(file)
body: <p>My users need to download a file when hitting a certain controller in my Play application. I thought this would do the trick:</p>
  
  <pre><code>def downloadFile = Action {
    Ok.sendFile(new File("example.zip"))
  }
  </code></pre>
  
  <p>But it seems to only give the actual content of the file instead of downloading the file. Could anybody tell me what I'm doing wrong?</p>
  
  <p>Thanks</p>