Error message in image upload - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Error message in image upload (/showthread.php?tid=15372) |
Error message in image upload - El Forum - 02-02-2009 [eluser]Rubiz'[/eluser] Hello all. I have a image uploader in my web site, but when I try to upload big images, size and kbytes, it returns me an error message, like this: Allowed memory size of 25165824 bytes exhausted (tried to allocate 10304 bytes) in /hsphere/local/home/sergiopo/sergioporto.com.br/admin/system/libraries/Image_lib.php on line 1157 Anyone could tell me what does it means? Error message in image upload - El Forum - 02-02-2009 [eluser]NateL[/eluser] Try this at the top of your page: ini_set("memory_limit","12M"); or change "12M" to a higher number if it isn't high enough.. try this out Error message in image upload - El Forum - 02-04-2009 [eluser]Rubiz'[/eluser] NateL, it didn't work... I have written your init config in the top of the function that uploads the image; the image to upload has 807kb, and I get thids error: Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 2576 bytes) in /hsphere/local/home/sergiopo/sergioporto.com.br/admin/system/libraries/Image_lib.php on line 1157 D'you know how I could solv this problem? |