note 18753 added to features.file-upload

From: Date: Mon, 04 Feb 2002 03:29:30 +0000
Subject: note 18753 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-26194@lists.php.net to get a copy of this message
My Env: php4.1.1 + Apache1.3 (RH7.1) Both move_uploaded_file() and is_uploaded_file() seems not working. Work around like this: <? if (isset($HTTP_POST_VARS["action_upload"])){ if (file_exists($HTTP_POST_FILES["uplfile"]["tmp_name"])) { copy($HTTP_POST_FILES["uplfile"]["tmp_name"], "/your/destination/file"); } } ?> <form name="fileupload" action="" method="post" enctype="multipart/form-data"> File to upload: <input type="File" name="uplfile"> <input type="Submit" name="action_upload" value="Upload"> </form> -- http://www.php.net/manual/en/features.file-upload.php http://master.php.net/manage/user-notes.php?action=edit+18753 http://master.php.net/manage/user-notes.php?action=delete+18753 http://master.php.net/manage/user-notes.php?action=reject+18753

« previous php.notes (#26194) next »