Question

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

Was it helpful?

Solution

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."

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top