CodeIgniter Forums
error in uploading more than 1 images in loop - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: error in uploading more than 1 images in loop (/thread-38651.html)



error in uploading more than 1 images in loop - El Forum - 02-15-2011

[eluser]dsi[/eluser]
hi everyone,

I was trying to upload and resize more than 1 images in a loop but codeigniter says "
Quote:Your server does not support the GD function required to process this type of image.
" after uploading the 1st image.

I have used "
Code:
$this->image_lib->clear();
" too. may be i am not using it properly or is there anyother prob.
1st image is uploaded successfully and resized too,
2nd image is also uploaded but during resizing, it causes that error.

can anyone please provide a working sample of code for resizing images in a loop. It would be greatly helpful.

thank you