File upload problem...
| From: | David Russell | Date: | Tue, 29 Oct 2002 08:25:30 +0000 |
| Subject: | File upload problem... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121821@lists.php.net to get a copy of this message | ||
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