Answers.Body: <p>You'll get that message whenever Craft/PHP can't upload the file (for any number of reasons).</p>
  
  <p>Looks like you've covered permissions and some common php.ini environmental limitations.</p>
  
  <p>If it's happening of <em>every</em> file regardless of file type or size, you can probably rule out any GD or Imagick related bug.</p>
  
  <p>Other things to check for:</p>
  
  <ol>
  <li><p>You're out of disk space on your hosting account.</p></li>
  <li><p>You're out of allocated space for the <code>/tmp</code> folder on your account.</p></li>
  <li><p>There is some firewall / .htaccess rewrite rule / Suhosin / mod_security blocking the request.</p></li>
  </ol>
  
  <p>It's probably worth checking <code>craft/storage/runtime/logs</code> for any errors as well as your web server's error logs.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-19T16:00:08.017Z
Answers.Text: Thanks Brad! We were indeed out of disk space. After finding what was causing that and removing it we were able to upload assets again.
Answers.UserDisplayName: FarrellScript
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-17T00:04:02.373Z
Answers.LastActivityDate: 2017-01-17T00:04:02.373Z
Answers.UserDisplayName: Brad Bell
Body: <p>Recently I've noticed that file uploads through the Craft admin panel have started to fail with the response "Error uploading the file: Uploaded file was empty". This error occurs when trying to upload a file to the server or to S3.</p>
  
  <p>At first, I was able to get around the issue by switching to a different browser or clearing the current browsers history and cookies. For some reason that would consistently alleviate the issue for any user who tried it, but as of last week this no longer appears to work.</p>
  
  <p>So far I have tried:</p>
  
  <ul>
  <li>Checking file permissions for the asset folder, they're set to 777</li>
  <li>Increasing the php memory_limit, post_max_size, and upload_max_filesize</li>
  <li>Uploading different file types and sizes looking for specific type or size that works, even a 20kb jpg fails.</li>
  </ul>
  
  <p>Has anyone seen this before or have an idea where to look to fix the issue?</p>
  
Tags: <upload><files>
Title: Why does asset uploading fail with the error "Uploaded file was empty"?
ThreadText: # Why does asset uploading fail with the error "Uploaded file was empty"?
  
  (Asked by: username_0 on 2017-01-16)
  
  Recently I've noticed that file uploads through the Craft admin panel have started to fail with the response "Error uploading the file: Uploaded file was empty". This error occurs when trying to upload a file to the server or to S3.
  
  At first, I was able to get around the issue by switching to a different browser or clearing the current browsers history and cookies. For some reason that would consistently alleviate the issue for any user who tried it, but as of last week this no longer appears to work.
  
  So far I have tried:
  
  * Checking file permissions for the asset folder, they're set to 777
  * Increasing the php memory\_limit, post\_max\_size, and upload\_max\_filesize
  * Uploading different file types and sizes looking for specific type or size that works, even a 20kb jpg fails.
  
  Has anyone seen this before or have an idea where to look to fix the issue?
  
  **Tags:** upload, files
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-01-17. Score: 1 | Accepted answer
  
  You'll get that message whenever Craft/PHP can't upload the file (for any number of reasons).
  
  Looks like you've covered permissions and some common php.ini environmental limitations.
  
  If it's happening of *every* file regardless of file type or size, you can probably rule out any GD or Imagick related bug.
  
  Other things to check for:
  
  1. You're out of disk space on your hosting account.
  2. You're out of allocated space for the `/tmp` folder on your account.
  3. There is some firewall / .htaccess rewrite rule / Suhosin / mod\_security blocking the request.
  
  It's probably worth checking `craft/storage/runtime/logs` for any errors as well as your web server's error logs.
  
  > **Comments:**
  > **username_0**: Thanks username_1! We were indeed out of disk space. After finding what was causing that and removing it we were able to upload assets again.  
  
  ---
  
  