Welcome Guest, Not a member yet? Register   Sign In
Stop User From Uploading Images
#1

[eluser]Vaibhav132[/eluser]
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
Code:
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


Messages In This Thread
Stop User From Uploading Images - by El Forum - 12-22-2011, 04:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB