title: PHP file upload Error 4. Works fine with small files.
body: <p>I have a situation with a PHP file upload form. It works fine with small files. I am using PHP 5.4 and Godaddy for hosting. </p>
  
  <p>The form (after simplification) is:</p>
  
  <pre><code> &lt;form id="fileupload" style="position:relative;" target="iframe_fileupload" 
     action="http://www.athiyoga.org/testupload.php" method="POST" enctype="multipart/form-data"&gt;
  
     &lt;input type="hidden" name="&lt;?echo ini_get("session.upload_progress.prefix");?&gt;" value="first"/&gt;
     &lt;input type="file" name="file_1"&gt;
     &lt;button type="submit" &gt;Start Submit&lt;/button&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>The following PHP.ini params are all set to 10M:
   upload_max_filesize,  post_max_size, memory_limit.</p>
  
  <p>When I try to display $_FILES, I get error = 4. Other fields are blank. If the file is small, it works great. The big files are in the range of 5MB to 6 MB. Anything less than 100KB works fine.</p>
  
  <p>There is a lot of additional code as I try to display progress bar, do validation, etc. But the problem I have for now has to do with file size. </p>
  
  <p>What or where else should I be looking. HOPEFULLY THERE ARE NO TYPOS while presenting the cut-down code. Mind you, all's well with small files.</p>
  
  <p>Any help would be appreciated. </p>