This code works properly in my localhost. I am using xampp 1.7.3. but when I put it in the live server it shows Possible file upload attack!. \'upload/\' is the fol
Possible file upload attack!
Most likely the $uploaddir is wrong. Use
echo dirname(__FILE__);
to get the real full path to your root folder on the web server and then put something like
/web/real/path/to/root/upload
as the path.