title: Why can't I upload a video (mp4 file)?
body: <p>I am currently trying to upload files to the web application. It this code below allows me to upload any file besides video (e.g. mp4) files. This is using CakePHP 3.0.11</p>
  
  <pre><code>if (isset($_FILES['uploads']) === true) {
     //put the data into a var
     $file = $_FILES['uploads'];
     for ($i = 0; $i &lt; count($file['name']); $i++) {
          $name = $file['name'][$i];
          $tmp_name = $file['tmp_name'] [$i];
  
          // upload file and move to img/uploads/itemsImages
          move_uploaded_file($tmp_name, WWW_ROOT . 'img/modulevideos/' . $name);
  
         // prepare the filename for database entry
         $moduleContent['content'] = 'modulevideos/' . $name ;
  
  
  
         echo $name, '&lt;br&gt;';
         echo $tmp_name, '&lt;br&gt;';
         echo $moduleContent['content'], '&lt;br&gt;';
     }
   }
  </code></pre>