note 69968 added to features.file-upload

From: Date: Thu, 28 Sep 2006 10:08:31 +0000
Subject: note 69968 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-117767@lists.php.net to get a copy of this message
Hi, I can't figure out how to work this thing. My code below is outputting the successful message but I can't find the file in the mysite.com/tmp/ folder. <php> <? $upload_dir = "/tmp/"; $upload_file = $upload_dir.basename($_FILES['filechose']['name']); echo '<pre>'; if(move_uploaded_file($_FILES['filechose']['tmp_name'], $upload_file)) { echo "The file ".basename( $_FILES['uploadedfile']['name'])." has been uploaded\n"; } else { echo "Possible file upload attack!\n"; } echo 'Here is some more debugging info:'; print_r($_FILES); print "</pre>"; ?> </php> ---- Server IP: 64.71.164.2 Probable Submitter: 69.228.132.67 ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit -- https://master.php.net/note/edit/69968 Del: integrated -- https://master.php.net/note/delete/69968/integrated Del: useless -- https://master.php.net/note/delete/69968/useless Del: bad code -- https://master.php.net/note/delete/69968/bad+code Del: spam -- https://master.php.net/note/delete/69968/spam Del: non-english -- https://master.php.net/note/delete/69968/non-english Del: in docs -- https://master.php.net/note/delete/69968/in+docs Del: other reasons-- https://master.php.net/note/delete/69968 Reject -- https://master.php.net/note/reject/69968 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117767) next »