开发者

Uploading two files on one form?

Ok so i have the form setup perfect but only the first upload is coming through. When i debug the PHP $_FILES i get this

  Array ( 
        [download] => Array ( 
        [name] => Array ( [0] => 01 something.mp3 [1] => 12 Alone.mp3 ) 
        [type] => Array ( [0] => audio/mpeg [1] => ) 
        [tmp_name] => Array ( [0] => /tmp/phpqRkcOG [1] => ) 
        [error] => Array ( [0] => 0 [1] => 1 ) 
        [size] => Array ( [0] => 514828 [1] => 0 ) ) )

As you can see I am not getting the开发者_如何学编程 second upload .....in the tmp directory

I was thinking of it was max_file_uploads

so i added this on top of my form

 ini_set('max_file_uploads','20');

but still nothing....any ideas


It looks like the array is populating correctly, but the second file is showing an error of 1. According to the PHP Manual, that error code is "The uploaded file exceeds the upload_max_filesize directive in php.ini."

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜