title: Error "file is empty" when uploading images in WordPress
body: <p>I'm running a <strong>WordPress 2.9.2</strong> Blog with a custom install of Debian in a <strong>Amazon Web Services EC2</strong> machine.</p>
  
  <p>Everything was working fine until monday. Then came tuesday, and suddendly, overnight, I can't upload pictures using the default WP file uploader (either flash or html).</p>
  
  <p>When I try to upload a picture, it displays the following error:</p>
  
  <blockquote>
    <p>File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini</p>
  </blockquote>
  
  <p>So I checked out my <strong>php.ini</strong>, and modified some settings as follows:</p>
  
  <ul>
  <li><strong>upload_max_filesize</strong>: 64M</li>
  <li><strong>post_max_size</strong>: 90M</li>
  <li><strong>memory_limit</strong>: 128M</li>
  <li><strong>max_excecution_time</strong>: 600</li>
  <li><strong>max_input_time</strong>: 600</li>
  </ul>
  
  <p>But it didn't work. Then I tried <strong>chmod</strong> -ing the <strong>wp-content/uploads/</strong> folder and its subfolders to <strong>777</strong>. Didn't work.</p>
  
  <p>Did some research on Google, and added following lines to <strong>.htaccess</strong>:</p>
  
  <pre><code>&lt;IfModule mod_security.c&gt;
  SetEnvIfNoCase Content-Type
  "^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_gzip.c&gt;
  mod_gzip_on No
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Didn't work. Finally, increased WPs memory limit in <strong>wp-settings.php</strong> file. Didn't work.</p>
  
  <p>So I'm all out of options by now. Anyone has any ideas on how to solve this? It's really bugging me and my client off!</p>
  
  <p>Thanks in advance!</p>