Can't upload images

Permalink 1 user found helpful
Hi,

I was able to upload images. Suddenly when trying to upload I receive an error.

An unexpected error occurred. Out of memory (allocated 203685888) (tried to allocate 48666625 bytes).

Already cleared my trash. Images are < 500K.

View Replies: View Best Answer
andrewjaff replied on at Permalink Reply
andrewjaff
Hi,

please increase memory limit on your server.
andrewjaff replied on at Permalink Reply
andrewjaff
Hi,

please increase memory limit on your server.
andrewjaff replied on at Permalink Reply
andrewjaff
Hi,

please increase memory limit on your server.
ernst1712 replied on at Permalink Reply
added ini_set("memory_limit","128M"); to my index.php.
No success.
weyboat replied on at Permalink Reply
weyboat
Memory allocation is not your problem since according to the error message you already have 194 MB allocated and your file is 46 MB.
Incidentally, 46 MB is a HUGE image file for a website, do they Really need to be so big?
I try to keep my image files below 100 Kb for very large images and 40 Kb for standard images..

It could be that your host has limited the disk space available and uploading images of 500 Kb will quickly eat up your allocated disk space.
JohntheFish replied on at Permalink Reply
JohntheFish
When a file is being uploaded or edited (resized), the amount of memory consumed is often several times the size of the file. Having said that, l suspect your site is simply running out of cpu resources trying to manipulate a file that big.
ernst1712 replied on at Permalink Reply
Thanks Guys.
Files aren't that big, was trying to upload multiple files <4MB after uploading one after each other didn't succeed.

Guessing That I'll have to contact my host?
ernst1712 replied on at Permalink Best Answer Reply
Probably the dimensions of the files were to big. > 4000 Px. Re-sized the images < 1500 px, upload succesful.
JohntheFish replied on at Permalink Reply
JohntheFish
Yes, that is very likely to have been the case.

Manipulating an image file (such as resizing) typically involves the graphics library creating a bitmap of the image, so its the raw image dimensions and the colour depth of each pixel that ultimately determine the amount of memory used, which can lead to memory requirements several times the size of the compressed file.
ernst1712 replied on at Permalink Reply
Thanks!
studio108 replied on at Permalink Reply
studio108
Had the same problem a few months back. I contacted my host and they changed something at their end and it solved the issue.
studio108 replied on at Permalink Reply
studio108
Had the same problem a few months back. I contacted my host and they changed something at their end and it solved the issue.
ernst1712 replied on at Permalink Reply
Thanks for the heads up. Will contact my host if this occurs again.