Hello
I am trying to upload file on server images directory but it always going in else statement.Please check my code:
if(is_uploaded_file($HTTP_POST_FILES['userfile']['name'])){
echo "Product sucessfully uploaded in temporary directory but cannot copy into images folder";
copy($HTTP_POST_FILES['userfile']['tmp_name'],"/websitename.net/images");
}
else{
echo "Fail to upload file:".$HTTP_POST_FILES['userfile']['name'];
}
Please suggest what wrong in it.I am using enctype="multipart/form-data" and "MAX_FILE_SIZE = 1000
Thanks
Zulfiqar Ali