I am uploading and resizing images on my website and I got an
Out of memory (allocated 89391104) (tried to allocate 20736 bytes)
error. So I set memory_limit = 700M in php.ini. It worked, I could upload the whole form, but the image was not uploaded. I checked the error, it was
The uploaded file exceeds the upload_max_filesize directive in php.ini
Than I added upload_max_filesize = 50M
to php.ini and now I receive the "Out of memory" error again.
Any ideas why this could happen and how I can fix it?