note 81855 added to function.is-uploaded-file

From: Date: Sun, 16 Mar 2008 18:26:37 +0000
Subject: note 81855 added to function.is-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-137108@lists.php.net to get a copy of this message
The following code : $uploadfile = $uploaddir . basename($_FILES['FileInfo']['name']); if (move_uploaded_file($_FILES['FileInfo']['name'], $uploadfile)) fails to upload . Although $_FILES['FileInfo']['name'] holds the user entered filename it fails the move_upload_file() . If $_FILES['FileInfo']['tmp_name'] is used as first argument in move_upload_file() , the function does not fail but it does not hold the correct file to upload either. Any advice how I can overcome this upload issue ? ---- Server IP: 82.80.248.162 Probable Submitter: 192.114.107.4 ---- Manual Page -- http://www.php.net/manual/en/function.is-uploaded-file.php Edit -- https://master.php.net/note/edit/81855 Del: integrated -- https://master.php.net/note/delete/81855/integrated Del: useless -- https://master.php.net/note/delete/81855/useless Del: bad code -- https://master.php.net/note/delete/81855/bad+code Del: spam -- https://master.php.net/note/delete/81855/spam Del: non-english -- https://master.php.net/note/delete/81855/non-english Del: in docs -- https://master.php.net/note/delete/81855/in+docs Del: other reasons-- https://master.php.net/note/delete/81855 Reject -- https://master.php.net/note/reject/81855 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137108) next »