note 18753 rejected from features.file-upload by zak
| From: | zak@php.net | Date: | Mon, 04 Feb 2002 03:47:17 +0000 |
| Subject: | note 18753 rejected from features.file-upload by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-26195@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>