note 18422 rejected from function.move-uploaded-file by zak

From: Date: Tue, 22 Jan 2002 14:14:34 +0000
Subject: note 18422 rejected from function.move-uploaded-file by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25688@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

« previous php.notes (#25688) next »