I'm trying to get the error of my uploaded file but I get the following error :
if(isset($_FILES['fichier']) && $_FILES['fichier']['error'] == 0)
{
//do stuff here, no problem
}
//get an error on this line "Notice: Undefined index: fichier in .."
elseif($_FILES['fichier']['error'] != 0)
{
}
else
{
echo 'no file selected or an error occured with the page.';
}
I need to get the error code (1 to 8)