Re: Re: Upload file field not working as a form element

From: Date: Sun, 21 Mar 2004 15:19:24 +0000
Subject: Re: Re: Upload file field not working as a form element
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181082@lists.php.net to get a copy of this message
>> The uploaded file name will be $HTTP_POST_FILES["filename"]["name"] -- >> use >> that rather than $_POST["filename"]. > > I'm sorry I don't understand. What is the extra ["name"] for? When I use > this in the insert into the value that is inserted into the database is > Array, as opposed to the actual filename. The $HTTP_POST_FILES array works for me. Maybe you need to try the $_FILES array instead. Take a look at the info in the manual: <http://www.php.net/manual/en/features.file-upload.php#features.file-upload. post-method>. -- Lowell Allen

« previous php.general (#181082) next »