note 17950 added to features.file-upload

From: Date: Fri, 04 Jan 2002 17:13:41 +0000
Subject: note 17950 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-24397@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 ;) -- http://www.php.net/manual/en/features.file-upload.php http://master.php.net/manage/user-notes.php?action=edit+17950 http://master.php.net/manage/user-notes.php?action=delete+17950 http://master.php.net/manage/user-notes.php?action=reject+17950

« previous php.notes (#24397) next »