title: Illegal string offset 'tmp_name' cakephp3
body: <p>I have a big problem, i can't upload a file in cakephp, i have an error:</p>
  
  <pre><code> if(!empty($this-&gt;request-&gt;data['Pictures']['name'])){
              $foto_name=$this-&gt;request-&gt;data['Pictures']['name'];
  
              $foto_tmp = $this-&gt;request-&gt;data['Pictures']['name']['tmp_name'];
              $path=WWW_ROOT.'img'.DS.'myimage'.$foto_name;
              move_uploaded_file($foto_tmp, $path);
  
  
          }
  </code></pre>
  
  <p>and the error is :</p>
  
  <pre><code>Warning (2): Illegal string offset 'tmp_name' 
  </code></pre>
  
  <p>i don't understand why?</p>