note 15691 added to features.file-upload

From: Date: Wed, 26 Sep 2001 18:57:43 +0000
Subject: note 15691 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-18343@lists.php.net to get a copy of this message
Take care to set the correct ownership of the php-tempdir when operating in safe-mode. If you use Apache and PHP as a module, you can set upload_tmp_dir to /tmp/php for example and then chown the directory /tmp/php to the user Apache runs under (wwwrun, nobody, etc - depends on installation/distribution). Then make the directory read&writable. Works very fine here! By the way, do I need to verify an uploaded file via 'is_uploaded_file', when I have 'register_globals' switched off and I use the name provided by 'tmp_name'? This name should always point to a file in the tempdir, right? Or can this be tricked? -- http://www.php.net/manual/en/features.file-upload.php http://master.php.net/manage/user-notes.php?action=edit+15691 http://master.php.net/manage/user-notes.php?action=delete+15691 http://master.php.net/manage/user-notes.php?action=reject+15691

« previous php.notes (#18343) next »