note 48573 deleted from function.is-uploaded-file by nlopess

From: Date: Fri, 31 Dec 2004 10:33:55 +0000
Subject: note 48573 deleted from function.is-uploaded-file by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82491@lists.php.net to get a copy of this message
Note Submitter: tonyfreeman at hotmail dot com ---- How about an example of how to use is_uploaded_file for one of the modern versions of PHP? <?php if (is_uploaded_file($_FILES['file']['tmp_name'])) { preprint_r($_FILES); exit; } ?> The form MUST contain an "enctype" entry like the one below: <?php <form action="" method="post" enctype="multipart/form-data"> <input name="file" type="file" size="50" /> <input type="submit" name="Submit" value="Submit" /> </form> ?>

« previous php.notes (#82491) next »