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.
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.
Hi,
please increase memory limit on your server.
please increase memory limit on your server.
Hi,
please increase memory limit on your server.
please increase memory limit on your server.
added ini_set("memory_limit","128M"); to my index.php.
No success.
No success.
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.
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.
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.
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?
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?
Probably the dimensions of the files were to big. > 4000 Px. Re-sized the images < 1500 px, upload succesful.
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.
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.
Thanks!
Had the same problem a few months back. I contacted my host and they changed something at their end and it solved the issue.
Had the same problem a few months back. I contacted my host and they changed something at their end and it solved the issue.
Thanks for the heads up. Will contact my host if this occurs again.
please increase memory limit on your server.