title: Slim how to take the post data from a form with file upload?
body: <p>How to take the post data using slim. i have a function call like this</p>
  
  <p><code>$this-&gt;app-&gt;post("/post/create", array($this, "createPost"));</code>
  i want to get the post datas from a php html form. i took request like this </p>
  
  <pre><code>$request = \Slim\Slim::getInstance()-&gt;request();
  </code></pre>
  
  <p>and took the post data like this</p>
  
  <pre><code>$userId = $_POST["user"];
  $content = $_POST["content"];
  $datetime = $_POST["date"];
  $filename = $_FILES["image"]["name"];
  $type = $_FILES["image"]["type"];
  $size = $_FILES["image"]["size"];
  $filetmpname = $_FILES["image"]["tmp_name"];
  </code></pre>
  
  <p>Is this the right way of doing?</p>