title: Why dosen't this upload script work with mp4s, mpegs (and maybe any /large/ files)?
body: <pre><code>&lt;?php
  if($_POST['uae']){
   move_uploaded_file($_FILES["file"]["tmp_name"], FS_DOC_ROOT . 'uploads/' . urlencode($_FILES['file']["name"]));
   mail("email@address","Uploaded File for you",$_POST['message']."\n\nTo view the file please follow the following link: ".HTTP_SERVER."uploads/".urlencode($_FILES['file']['name']).".","FROM: DONOTREPLY &lt;do-not-reply@website.com&gt;");
   echo "&lt;div style='background: green;color: #ffffff;padding: 5px;'&gt;All sent... send another one below.&lt;/div&gt;";
  }
  ?&gt;
  
  &lt;form method="post" action="uploadandemail.html" enctype="multipart/form-data"&gt;
  
   &lt;table&gt;
       &lt;tr&gt;
           &lt;td&gt;Choose a file to upload:&lt;/td&gt;
              &lt;td&gt;&lt;input type="file" name="file" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
           &lt;td valign="top"&gt;Message:&lt;/td&gt;
              &lt;td&gt;&lt;textarea name="message" cols="40" rows="40" style="height: 150px;"&gt;I have uploaded a file for you.&lt;/textarea&gt;&lt;br /&gt;This will be superceeded with "To view the file please follow the following link: http://linktoyour.new/file.doc".&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
           &lt;td&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type="submit" name="uae" value="Upload and Email" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>It doesn't work - it will quite happily upload a small image or a PDF but it don't upload an mp4 or an mpeg. It doesn't even try it, the page just refreshes straight away.</p>
  
  <p>Any ideas? php.ini is set to 100M max upload.</p>
  
  <p>This is my php5.ini file:</p>
  
  <pre><code>error_reporting  =  E_ALL
  upload_max_filesize = 100M
  </code></pre>
  
  <p>Thanks</p>