Re: cvs: php4 /pear/HTML Form.php
| From: | Stig S. Bakken | Date: | Wed, 30 Jan 2002 23:20:59 +0000 |
| Subject: | Re: cvs: php4 /pear/HTML Form.php | ||
| References: | 1 2 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-2250@lists.php.net to get a copy of this message | ||
On Wed, 2002-01-30 at 14:55, Tomas V.V.Cox wrote:
> El mié, 30-01-2002 a las 10:26, Stig Bakken escribió:
> > ssb Wed Jan 30 04:26:25 2002 EDT
> >
> > Modified files:
> > /php4/pear/HTML Form.php
> > Log:
> > * XHTML fixes by Hans Westerbeek
> >
> >
> > ----
> >
>
> > Index: php4/pear/HTML/Form.php
> > diff -u php4/pear/HTML/Form.php:1.21 php4/pear/HTML/Form.php:1.22
> >
> > @@ -445,30 +445,29 @@
> > function displayFile($name, $maxsize = HTML_FORM_MAX_FILE_SIZE,
> > $size = HTML_FORM_TEXT_SIZE, $accept = '')
> > {
> > - print "<INPUT TYPE=\"file\" NAME=\"$name\"
> > MAXSIZE=\"$maxsize\" SIZE=\"$size\"";
> > + print "<input type=\"file\" name=\"$name\"
> > maxsize=\"$maxsize\" size=\"$size\"";
> > if ($accept) {
> > - print " ACCEPT=\"$accept\"";
> > + print " accept=\"$accept\"";
> > }
> > - print ">";
> > + print "/>";
> >
> > }
> >
>
> I'm curious about the "maxsize" attrib for setting the max size in a
> "input file". AFAIK this attrib is not specified in the HTML 4.0 W3
> Specs and isn't supported by the PHP upload system.
>
> So my question is: for what is that attrib there? :-)
>
> I guess that the only thing to limit the size (which will limit the size
> for all files) is with a hidden name MAX_FILE_SIZE.
Must be a copy/paste issue. AFAIK that attribute has no effect here.
- Stig