<p>I had the same problem, changing <code>post_max_size</code> in <code>php.ini</code> to something other than 0 (I used 8M) did it for me.</p>

<p>I'm not sure why this works: <code>php.ini</code> says a value of 0 should disable the limit altogether, and this was never an issue on my other Craft installs. Perhaps a bug?</p>

CC BY-SA 3.0
2016-08-26T04:56:35.353Z
2016-08-26T04:56:35.353Z
Paul
<p>I just upgraded Craft to the latest version, and this error now shows up.</p>

<pre><code>The file “myfile.jpg” could not be uploaded, because it exceeds the maximum upload size of 0 B
</code></pre>

<p>Any fix ? Everything worked fine before the update.
Thanks !</p>

CC BY-SA 3.0
2016-01-04T18:49:38.883Z
Is this just 1 file or does it happen with all files?
Brad Bell
CC BY-SA 3.0
2016-01-06T13:34:07.663Z
all the files, whatever their size is
ovesco
CC BY-SA 3.0
2016-01-06T19:16:55.937Z
Enable devMode and try checking your `craft/storage/runtime/logs` files for any related upload errors.
Brad Bell
CC BY-SA 3.0
2016-01-07T15:32:56.150Z
So I looked inside the craft.log file, removed everything inside and tried to upload a picture. From the moment when I click "upload file" to the selection of the file and then the javascript alert of 0 B, nothing is written inside the log file.
ovesco
CC BY-SA 3.0
2016-01-07T18:58:35.263Z
Hrm... anything in your web server's error logs?
Brad Bell
CC BY-SA 3.0
2016-01-07T18:59:11.890Z
Also, are you using GD or Imagick and what is the version?
Brad Bell
CC BY-SA 3.0
2016-01-07T21:03:32.463Z
GD with php 5.5.12. But everything worked fine until I upgraded craft cms. I think the problem comes from a javascript error as no ajax call is made.
ovesco
<upload>
File upload - maximum upload size of 0 B
# File upload - maximum upload size of 0 B

(Asked by: username_0 on 2016-01-04)

I just upgraded Craft to the latest version, and this error now shows up.
The file “myfile.jpg” could not be uploaded, because it exceeds the maximum upload size of 0 B

Any fix ? Everything worked fine before the update.
Thanks !

**Tags:** upload
> **Comments:**
> **username_1**: Is this just 1 file or does it happen with all files?  
> **username_0**: all the files, whatever their size is  
> **username_1**: Enable devMode and try checking your `craft/storage/runtime/logs` files for any related upload errors.  
> **username_0**: So I looked inside the craft.log file, removed everything inside and tried to upload a picture. From the moment when I click "upload file" to the selection of the file and then the javascript alert of 0 B, nothing is written inside the log file.  
> **username_1**: Hrm... anything in your web server's error logs?  
> **username_1**: Also, are you using GD or Imagick and what is the version?  
> **username_0**: GD with php 5.5.12. But everything worked fine until I upgraded craft cms. I think the problem comes from a javascript error as no ajax call is made.  

---

## 1 answers

### Answer by username_2 on 2016-08-26. Score: 2

I had the same problem, changing `post_max_size` in `php.ini` to something other than 0 (I used 8M) did it for me.

I'm not sure why this works: `php.ini` says a value of 0 should disable the limit altogether, and this was never an issue on my other Craft installs. Perhaps a bug?


---

