Thread Formular Array im Content POSTen (13 answers)
Opened by IceRage at 2008-09-07 17:27

Struppi
 2008-09-08 15:13
#114350 #114350
User since
2006-02-17
628 Artikel
BenutzerIn
[Homepage]
user image
Hast du dir die Doku mal genauer durchgelesen?
Soweit ich dich verstehe sind die (oder representieren die) Formularfelder 'userfile[]' ja keine normalen Eingabefelder sondern einen file-input und dazu steht z.b. in der Doku:

If the input is of type file, then it has these additional methods:

$input->file

This is just an alias for the value() method. It sets the filename to read data from.
$filename = $input->filename
$input->filename( $new_filename )

This get/sets the filename reported to the server during file upload. This attribute defaults to the value reported by the file() method.
$content = $input->content
$input->content( $new_content )

This get/sets the file content provided to the server during file upload. This method can be used if you do not want the content to be read from an actual file.


Dir muss klar sein, dass die Daten eines Filefields erst noch relativ aufwendig umgewandelt werden müssen, bevor sie übertragen werden können.

View full thread Formular Array im Content POSTen