note 18422 added to function.move-uploaded-file

From: Date: Tue, 22 Jan 2002 11:01:17 +0000
Subject: note 18422 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-25682@lists.php.net to get a copy of this message
It seems that this function has a bug. If the uploaded file already exists (filename is used), then it returns that everything was okay, also if the directory is not writeable, so no overwrite happens. You should check if the file already exists before moving it with move_uploaded_file()! Bye, Vir@s -- http://www.php.net/manual/en/function.move-uploaded-file.php http://master.php.net/manage/user-notes.php?action=edit+18422 http://master.php.net/manage/user-notes.php?action=delete+18422 http://master.php.net/manage/user-notes.php?action=reject+18422

« previous php.notes (#25682) next »