<p>I had the same problem and all PHP settings were set OK. I couldn't upload a 2MB file, but uploading a 20KB file was fine. </p>

<p>The problem was that the <code>/tmp</code> folder was almost completely full (because PHP stores the temporary file in <code>/tmp</code> before moving it to web/user space i.e. your assets folder). Freeing up space in this folder solved the issue.</p>

CC BY-SA 3.0
2016-08-26T14:37:50.630Z
2016-08-26T14:37:50.630Z
Christian P
<p>We've got all the max settings set up OK as per <a href="https://craftcms.com/support/upload-troubleshooting" rel="nofollow noreferrer">https://craftcms.com/support/upload-troubleshooting</a>, but we are still getting errors. The log file just shows this, nothing more:</p>

<blockquote>
  <p>2014/10/24 11:26:35 [error] [application] Uploaded file was empty</p>
</blockquote>

<p>What else should we be looking for?</p>

CC BY-SA 3.0
2015-02-20T02:15:01.953Z
@RussBack, did you get this straightened out? We're attempting to round up stagnant questions and would love to know if there's something to learn here.
Matt Stein
CC BY-SA 3.0
2015-02-20T06:44:21.867Z
We haven't actually. I have a ticket update from Brad to look at - will reply today if I can.
Russ Back
CC BY-SA 3.0
2016-01-12T18:59:45.477Z
Hey guys, im actually having the same isssue, any insights you could share?
Keith Mancuso
CC BY-SA 3.0
2014-10-29T17:55:26.287Z
Is it just a particular file, or all files? Can you enable devMode, reproduce the problem and post the stack trace leading up to the error? Also, check and see if you have a `craft/storage/runtime/logs/phperrors.log` file and if anything related is getting logged there.
Brad Bell
<assets><upload>
Uploaded file was empty
# Uploaded file was empty

(Asked by: username_0 on 2014-10-29)

We've got all the max settings set up OK as per <https://craftcms.com/support/upload-troubleshooting>, but we are still getting errors. The log file just shows this, nothing more:

> 2014/10/24 11:26:35 [error] [application] Uploaded file was empty

What else should we be looking for?

**Tags:** assets, upload

> **Comments:**
> **username_3**: Is it just a particular file, or all files? Can you enable devMode, reproduce the problem and post the stack trace leading up to the error? Also, check and see if you have a `craft/storage/runtime/logs/phperrors.log` file and if anything related is getting logged there.  
> **username_1**: @RussBack, did you get this straightened out? We're attempting to round up stagnant questions and would love to know if there's something to learn here.  
> **username_0**: We haven't actually. I have a ticket update from Brad to look at - will reply today if I can.  
> **username_2**: Hey guys, im actually having the same isssue, any insights you could share?  

---

## 1 answers

### Answer by username_4 on 2016-08-26. Score: 1

I had the same problem and all PHP settings were set OK. I couldn't upload a 2MB file, but uploading a 20KB file was fine.

The problem was that the `/tmp` folder was almost completely full (because PHP stores the temporary file in `/tmp` before moving it to web/user space i.e. your assets folder). Freeing up space in this folder solved the issue.


---

