title: PHP Large File Uploads (again)
body: <p>Firstly sorry for another of the same (countless iterations of this question I know), but I'm completely stoomped on this one and spent all day looking for answers (along with checking all the previous threads here).</p>
  
  <p>So Im trying to upload large(ish) files through PHP. The script fails at files around 8-10Mb mark (works for files upto 7.5Mb, fails at 10Mb). It just returns an empty file array, ie:</p>
  
  <pre><code>print_r($_FILES)
  = array( )
  </code></pre>
  
  <p>Im running IIS7, using Plesk 10, on a Windows 2008 R2 OS. Heres my form:</p>
  
  <pre><code>&lt;form enctype="multipart/form-data" action="upload.php" method="POST"&gt;
    &lt;input type="hidden" name="MAX_FILE_SIZE" value="200000000"&gt;
    &lt;input name="Filedata" type="file" /&gt;
  &lt;input type="submit" value="Upload File" class="button" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Some relevant php.ini variables:</p>
  
  <pre><code>max_execution_time: 240
  max_input_time: 360
  post_max_size: 1600M
  upload_max_filesize: 800M
  memory_limit 1600M
  </code></pre>
  
  <p>And my web.config has this in:</p>
  
  <pre><code>&lt;security&gt;
    &lt;requestFiltering&gt;
      &lt;requestLimits maxAllowedContentLength="200000000"/&gt;
    &lt;/requestFiltering&gt;
  &lt;/security&gt;
  </code></pre>
  
  <p>I know that the php.ini's are being listened to, because php_info() reports them as that (also ini_get('...') reports them as correct as well. As an aside they are the 'local' values, the 'master' ones are lot lower (but am assuming if php_info() reports the local as that then they are the ones being used). I put in some debug code to my script:</p>
  
  <pre><code>echo ini_get('post_max_size') . "&lt;br /&gt;";
  echo ini_get('upload_max_filesize') . "&lt;br /&gt;";
  echo $_SERVER['CONTENT_LENGTH'] . "&lt;br /&gt;";
  </code></pre>
  
  <p>That echos out:</p>
  
  <pre><code>1600M
  800M
  10424520
  </code></pre>
  
  <p>The last one is the 10Mb (ish) file size in bytes (I am assuming). So my question is, what am I missing here?</p>