Re: Can I use $_REQUEST for file uploads?
| From: | Richard Lynch | Date: | Fri, 22 Apr 2005 09:13:28 +0000 |
| Subject: | Re: Can I use $_REQUEST for file uploads? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213628@lists.php.net to get a copy of this message | ||
On Thu, April 21, 2005 12:48 pm, Srinadh Sannidhanam said:
> Hi
> When I use $_REQUEST for accessing files uploaded, it is working
> fine in PHP PHP 4.3.10.
> But it is not working in PHP 4.3.4.
> $_FILES working in both the versions. Can I use $_REQUEST in PHP
> 4.3.10 also? Do I need to change any configuration in php.ini?
> server is Apache/2.0.49
> Please help me in this regard.
When $_REQUEST doesn't seem to work with file uploads, it almost always,
in my experience, means I forgot the ENCTYPE="multipart/form-data" on the
FORM tag.
D'oh!
I did that several times, over the years, before it became a habit to type
it for file uploads.
YMMV
--
Like Music?
http://l-i-e.com/artists.htm