1
我必须在CodeIgniter中上传多个图像。 var_dump($_FILES)
的结果是:在CodeIgniter中上传多个图像文件
array
'organizer_logo' =>
array
'name' =>
array
0 => string 'Best Wallpapers 2009 (Fun12.com) 01.jpg' (length=39)
1 => string 'Best Wallpapers 2009 (Fun12.com) 05.jpg' (length=39)
'type' =>
array
0 => string 'image/jpeg' (length=10)
1 => string 'image/jpeg' (length=10)
'tmp_name' =>
array
0 => string 'D:\wamp\tmp\php1238.tmp' (length=23)
1 => string 'D:\wamp\tmp\php1239.tmp' (length=23)
'error' =>
array
0 => int 0
1 => int 0
'size' =>
array
0 => int 142036
1 => int 269895
@cryptic - 你误会了。这个答案是关于如何将图像添加到配置数组,他可以使用小函数将任意数量的图像添加到配置数组,然后循环并上传。你为什么不给出更好的答案,而不仅仅是评论。 – Shaolin 2013-04-08 08:15:45