<p>You're running out of PHP memory as it's processes the image when it's uploaded. The fix for this is to increase the memory limit, which you normally need to get your hosting company to do for you. Try 512mb.</p>

CC BY-SA 3.0
2015-07-19T13:07:27.707Z
Great :) I had the same issue on a client site a couple of weeks ago.
darylknight
CC BY-SA 3.0
2015-07-16T22:20:25.173Z
2015-07-16T22:20:25.173Z
darylknight
<p>I tried to upload an image in the backend, but I always get the error: <code>Upload failed for 'image.jpg'</code>. In the logs is this: </p>

<p><code>[16-Jul-2015 21:33:48 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4966029 bytes) in /var/www/virtual/conwave/html/service/cgk/craft/app/vendor/imagine/imagine/lib/Imagine/Image/Metadata/ExifMetadataReader.php on line 72</code></p>

<p>Can anybody help me? I have no idea what the problem is.</p>

<p>Thanks!</p>

CC BY-SA 3.0
2015-07-16T21:59:55.733Z
Check your `craft/storage/runtime/logs` files for `[error]` and see if anything useful is being logged.
Brad Bell
CC BY-SA 3.0
2015-07-16T22:05:44.657Z
Also, make sure you have the correct permissions set for that directory.
Damon
<assets>
Upload failed for 'image.jpg'
# Upload failed for 'image.jpg'

(Asked by: username_0 on 2015-07-16)

I tried to upload an image in the backend, but I always get the error: `Upload failed for 'image.jpg'`. In the logs is this:

`[16-Jul-2015 21:33:48 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4966029 bytes) in /var/www/virtual/conwave/html/service/cgk/craft/app/vendor/imagine/imagine/lib/Imagine/Image/Metadata/ExifMetadataReader.php on line 72`

Can anybody help me? I have no idea what the problem is.

Thanks!

**Tags:** assets

> **Comments:**
> **username_1**: Check your `craft/storage/runtime/logs` files for `[error]` and see if anything useful is being logged.  
> **username_2**: Also, make sure you have the correct permissions set for that directory.  

---

## 1 answers

### Answer by username_3 on 2015-07-16. Score: 2 | Accepted answer

You're running out of PHP memory as it's processes the image when it's uploaded. The fix for this is to increase the memory limit, which you normally need to get your hosting company to do for you. Try 512mb.

> **Comments:**
> **username_3**: Great :) I had the same issue on a client site a couple of weeks ago.  

---

