Re: quickform MAX_FILE_SIZE
| From: | Bertrand Mansion | Date: | Wed, 21 May 2003 20:30:21 +0000 |
| Subject: | Re: quickform MAX_FILE_SIZE | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5524@lists.php.net to get a copy of this message | ||
<david@ddahl.com> wrote :
> i add this to my form to prevent a file form being to big to upload...
> $new0->addElement('hidden', 'MAX_FILE_SIZE', '8000000');
>
> however:
>
> This is always in the source:
>
> <input name="MAX_FILE_SIZE" type="hidden" value="1048576"
> />
>
> what is the method to set the max file size?
>
> I have the latest stable QuickForm, PEAR, HTML_Common, etc...
Guess what ? There is now a setMaxFileSize(8000000) method in QuickForm.
Bertrand Mansion
Mamasam