Re: Bug with multipart/form-data ?
| From: | John W. Holmes | Date: | Mon, 05 Apr 2004 20:15:41 +0000 |
| Subject: | Re: Bug with multipart/form-data ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182402@lists.php.net to get a copy of this message | ||
From: "Jay Blanchard" <jay.blanchard@niicommunications.com>
> > [snip]
> > I have a form in a page 1, that POSTs a file and some hidden's to page
> > 2. If
> > the file size is bigger that the max in php.ini, in page 2, $_POST is
> > empty.
> > [/snip]
>
> Why, of course it is! The php.ini sets the max file size $_POST will be
> empty because it would not be allowed to load. You have two choices;
>
> A. increase the max file size in the php.ini
> 2. reduce the size of the file being uploaded.
>
> It is not a bug.
I understand what you're saying, and maybe the OP will agree with me here,
but does that seem like the natural way for it to be handled? Shouldn't
$_FILES be empty and $_POST still have the rest of the posted data? PHP
decides to reject the file, but why does it reject the rest of the post
data, also?
Maybe off-topic for this list, but if that's what the OP was talking about,
then I've got to kind of agree with him.
---John Holmes...