Re: $_FILE[user][error] = 6 ?
| From: | Christopher Fulton | Date: | Wed, 29 Dec 2004 16:33:20 +0000 |
| Subject: | Re: $_FILE[user][error] = 6 ? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205310@lists.php.net to get a copy of this message | ||
It may help to know what your form looks like. Does your form have
the hidden MAX_FILE_SIZE variable before the file field? Also, what
version of PHP are you running?
Anyways, just some suggestions.
-Chris
On Tue, 28 Dec 2004 15:18:16 -0500, Al <news@ridersite.org> wrote:
> I keyed "$_FILE[user][error]" from memory, and it's wrong. It really is
> "userfile";
>
> Weird problem, eh!
>
> Sebastian wrote:
> > not sure if its a typo but the array shows "userfile" and your variable
> > array shows "user"
> > it looks like the file isn't being passed at all, double check if you have
> > any typos.. type is blank which should at least show the mime type..
> >
> > ----- Original Message -----
> > From: "Al" <news@ridersite.org>
> > To: <php-general@lists.php.net>
> > Sent: Tuesday, December 28, 2004 2:51 PM
> > Subject: Re: [PHP] $_FILE[user][error] = 6 ?
> >
> >
> >
> >>Doesn't work on any file type.
> >>
> >>I've checked the usual suspects. e.g.
> >><form enctype="multipart/form-data" action="_url_"
> >>method=\"post\"> URL is
> >
> > my
> >
> >>php file.
> >>
> >>On Wednesday 29 December 2004 01:40, Al wrote:
> >>
> >>What is a $_FILE[user][error]=> 6
> >>
> >>I can't find Error level 6 in the manual or on Google.
> >>
> >>Here is my files array:
> >>
> >>[userfile] => Array
> >> (
> >> [name] => Readme.txt
> >> [type] =>
> >> [tmp_name] =>
> >> [error] => 6
> >> [size] => 0
> >> )
> >>
> >>Doesn't make sense. Readme.txt is simply a small text file on my local
> >
> > HD.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>