Re: File upload problem...

From: Date: Tue, 29 Oct 2002 10:32:55 +0000
Subject: Re: File upload problem...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121829@lists.php.net to get a copy of this message
Try print_r($_FILES) and see if you really get what you should. And also check if you have your form set as <form enctype="multipart/form-data" action=" url " method="POST"> David Russell wrote:
Hi all, I have a form with a file upload section. The target script contains the following: if (is_uploaded_file($_FILES['newuserfile']['tmp_name'])) {
     AddAttachment($BPFNo, $newuserfile, $newuserfile_name,
$newuserfile_size, $newuserfile_type); } AddAttachment() is an included function which works elsewhere. When running this, I get the following error: Notice: Undefined index: newuserfile in c:\webpages\intranet\htmlroot\optimiza\bpf\updatebpf.php on line 77 And obviously, the attachment is not added. Where can I look for info on the $_FILES global array, and start narrowing down the problem. One caveat - I currently have no internet access (e-mail only). Could people please e-mail me information especially if they want to include links to relevant websites. Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: DavidR@BarloworldOptimus.com web: www.BarloworldOptimus.com


« previous php.general (#121829) next »