note 98160 added to features.file-upload.post-method

From: Date: Fri, 28 May 2010 20:43:30 +0000
Subject: note 98160 added to features.file-upload.post-method
Groups: php.notes 
Request: Send a blank email to php-notes+get-169701@lists.php.net to get a copy of this message
Ok, this worked. But I haven't been able to fix the uploaded passport into the final registration form. This is what I have so far: <?php if ((($_FILES["passport"]["type"] == "image/gif") || ($_FILES["passport"]["type"] == "image/jpeg") || ($_FILES["passport"]["type"] == "image/pjpeg")) && ($_FILES["passport"]["size"] < 25000)) { if ($_FILES["passport"]["error"] > 0) { echo "Return Code: " . $_FILES["passport"]["error"] . "<br />"; } else { echo '<img src="'.'uploads/"' . $_FILES["passport"]["name"].'>';//meant to show up the image in a particular //part of the processed form if (file_exists("uploads/" . $_FILES["passport"]["name"])) { echo $_FILES["passport"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["passport"]["tmp_name"], "uploads/" . $_FILES["passport"]["name"]); echo '<img src="'.'uploads/"' . $_FILES["passport"]["name"].'>';//the same with the above } } } else { echo "Invalid file"; } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 208.122.249.126 ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.post-method.php Edit -- https://master.php.net/note/edit/98160 Del: integrated -- https://master.php.net/note/delete/98160/integrated Del: useless -- https://master.php.net/note/delete/98160/useless Del: bad code -- https://master.php.net/note/delete/98160/bad+code Del: spam -- https://master.php.net/note/delete/98160/spam Del: non-english -- https://master.php.net/note/delete/98160/non-english Del: in docs -- https://master.php.net/note/delete/98160/in+docs Del: other reasons-- https://master.php.net/note/delete/98160 Reject -- https://master.php.net/note/reject/98160 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169701) next »