note 17950 deleted from features.file-upload by jimw
| From: | jimw@php.net | Date: | Fri, 11 Jan 2002 21:47:33 +0000 |
| Subject: | note 17950 deleted from features.file-upload by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24709@lists.php.net to get a copy of this message | ||
I'm using PHP Version 4.0.3pl1 with apache 1.3.14 and OS is Mandrake 7.0
My form of uploading files is working at 100% and what I did was:
<form enctype="multipart/form-data" action="<?php echo $PHP_SELF; ?>"
method="Post">
<input name="file" type="file" size=30>
** Method MUST be Post or it won't work
if($file == ""){
echo "File is missing";
}else{
set_time_limit (80);
ignore_user_abort (ON);
if (is_uploaded_file($ficheiro1)) {
copy($file, "/tmp/$file_name");
} else {
echo "Error uploading '$file_name'";
}
}
I think this is the essencial. Thanks to all that add some notes here and on another sites. This is
only the essencial part of the form to work... I think ;)