Te first time i switched from $userfile_** to $_FILES i spent hours pulling my hair out trying to figure out why my arrays were not getting populated. I too felt like reporting it but decided against is because someone is sure to say 'this is a feature not a bug' :-))
Nathan Taylor wrote:
Hey Guys,
I discovered a possible bug with the $_FILES super global and thought I'd pass it along to you guys to double check the accuracy of this being a bug before I reported it to the PHP team. So here goes..
The default format for $_FILES is $_FILES['variable']['element'] which of course works fine, following this format I would assume that the format for a variable inside an array would be $_FILES['array']['variable']['element'] but on the contrary it is in fact $_FILES['array']['element']['variable']. Somehow this doesn't seem quite right to me. Granted, it still works just as well but it sort of breaks the traditional naming structure for an array and really jumbles the logical flow of things. Do you think this is worth reporting?
Regards,
Nathan Taylor
-- http://www.radinks.com/upload Drag and Drop File Uploader.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php