|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1999-10-27 18:53 UTC] c_stach at yahoo dot com
When using an HTTP form to upload files PHP incorrectly sets the <variable>_size, <variable>_type, and neglects to set <variable>_name variables when <variable> is in the format of an array (eg, "userfile[$index]" which would expand to something like "userfile[3]"). What actually ends up happening, for example, is userfile[3]_name is not ever set, userfile[3]_type is set correctly, and userfile_size is set to the last encountered size value instead of userfile[3]_size.
Beyond this problem, I ran into another issue with this. PHP seemingly incorrectly parses out, for example, a variable in the format "$userfile[$id]_name" which led me to have to do "${userfile[$id]_name"} instead to get around the constraints of the parser.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 02:00:01 2025 UTC |
Instead of "${userfile[$id]_name"} in the last paragraph, I actually meant ${"userfile[$id]_name"}.