Eric Kandja wrote: > > Hello, > > I don't understant why in any case, whith file and whithout file in the > INPUT box the fonction is_uploaded_file is always false. Anyone knows why ? > > if (!is_uploaded_file($_FILES['photoInternaute']['name'])) > { > $errMessage = "No file uploaded"; > } > There are three possibilities (array, key, value), and maybe it's that you need to take a break from the problem, so check 1) the return from the function is_uploaded_file() to make sure the function returns an associative array 2) do a print_r($FILE) to see what it actually holds at runtime PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/