MudGuard: Dateupload: maxlength oder max_file_size?

Beitrag lesen

Hi,

Hier (http://aktuell.de.selfhtml.org/artikel/phpasp/php-uploadcheck/index.htm) steht, dass ein hidden Feld mit Namen 'max_file_size' dem Browser die maximale Dategröße beim Dateiupload mitteilt.
In SelfHTML selbst steht, dass im file Feld das Attribut maxlength das übernimmt. Was stimmt nun,

beides und keines. Beides, weil das eine für einen PHP-eigenen Mechanismus gilt und das andere für HTML;

Hm. Wo im HTML-Standard steht das?

Ich finde (in HTML 4.01) nichts dazu.
Bei maxlength heißt es:

When the type attribute has the value "text" or "password", this attribute specifies the maximum number of characters the user may enter. This number may exceed the specified size, in which case the user agent should offer a scrolling mechanism. The default value for this attribute is an unlimited number.

Keinerlei Hinweis auf eine Verwendung im Zusammenhang mit type="file".

Auch bei type="file" oder bei fileselect control steht nichts zu maxlength.

cu,
Andreas

--
Warum nennt sich Andreas hier MudGuard?
Fachfragen per E-Mail halte ich für unverschämt und werde entsprechende E-Mails nicht beantworten. Für Fachfragen ist das Forum da.