Re: connection error on file upload
| From: | Kenn | Date: | Mon, 03 Apr 2006 16:22:53 +0000 |
| Subject: | Re: connection error on file upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233130@lists.php.net to get a copy of this message | ||
Jay Blanchard wrote:
> [snip]
> Jay Blanchard wrote:
>
>> [snip]
>> That was my first thought, but two things: 1. the error occurs
>> IMMEDIATELY, and 2. the max_execution_time = 6000 so I would think
>>
> that
>
>> arbitrarily high number would prevent that error?
>> [/snip]
>>
>> If it occurs immediately does your upload form look like this;
>>
>> <!-- The data encoding type, enctype, MUST be specified as below -->
>> <form enctype="multipart/form-data" action="__URL__"
>> method="POST">
>> <!-- MAX_FILE_SIZE must precede the file input field -->
>> <input type="hidden" name="MAX_FILE_SIZE"
>> value="30000"
>>
> /><<<<<<<<<
>
>> LOOK
>> <!-- Name of input element determines name in $_FILES array -->
>> Send this file: <input name="userfile" type="file" />
>> <input type="submit" value="Send File" />
>> </form>
>>
>> From http://www.php.net/manual/en/features.file-upload.php
>>
>> In your php.ini what is the max upload size?
>>
>>
>
> My looks pretty much the same, except for the omission of the hidden
> field for max_file_size, which is defined in the php.ini as
>
> upload_max_filesize = 200M
>
> post_max_size = 250M
>
>
>
> Well, there it is then. You MUST include that hidden field.
>
I just added that line, but the results haven't changed. STILL get the
error. any other ideas about what I'm doing wrong?
thanks in advance.