CodeIgniter Forums

Full Version: Stop User From Uploading Images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I am working on Uploading image functionality.
The user is allowed to upload only four images.
I am using the following function to count number of images in the directory
if((count($images) =4)){
echo "You can upload only four images";

I am not able to estimate how can i modify and use the function
$this->upload->display_errors(); to stop user from uploading images
after the specific count.

Please let me know, if there is any other way to do this.
Thanx Smile