title: Symfony 2 - How to get file extension from getRequest()->files->get()
body: <p>I have a photo upload HTML form where its values are captured using getRequest(). How can I grab the file extension of this when I am not using Symfony forms? Here's the line I catch the form element value.</p>
  
  <pre><code>$image = $this-&gt;getRequest()-&gt;files-&gt;get("image");
  </code></pre>