#32212 [Opn->Fbk]: $_FILES with arrays

From: Date: Mon, 07 Mar 2005 04:39:19 +0000
Subject: #32212 [Opn->Fbk]: $_FILES with arrays
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969366862@lists.php.net to get a copy of this message
ID: 32212 Updated by: philip@php.net Reported By: gardan at gmx dot net -Status: Open +Status: Feedback Bug Type: Documentation problem Operating System: - PHP Version: Irrelevant New Comment: What bug from 2002 are you talking about? Previous Comments: ------------------------------------------------------------------------ [2005-03-07 02:56:02] gardan at gmx dot net Description: ------------ Using a form with input name like name="foo[]" this is what is returned for files: $_FILES = array(1) { ["foo"]=> array(5) { ["name"]=> array(2) { [0]=> string(0) "" [1]=> string(0) "" } ["type"]=> array(2) { [0]=> string(0) "" [1]=> string(0) "" } [...snip...] } } Expected: $_FILES = array(1) { ["foo"]=> array(2) { [0]=> array(5) { [name]=> string(0) "" [type]=> string(0) "" [...snip...] } [1]=> array(5) { [0]=> string(0) "" [1]=> string(0) "" [...snip...] } } } This being highly unintuitive, though in a bug report from 2002 closed as "won't change", should be documented. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32212&edit=1

« previous php.doc (#969366862) next »