|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-07 05:39 UTC] philip@php.net
[2005-03-07 11:34 UTC] vrana@php.net
[2005-03-14 21:33 UTC] gardan at gmx dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 11:00:01 2025 UTC |
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.