Welcome Guest, Not a member yet? Register   Sign In
upload library with dynamic $_FILES
#2

[eluser]Dennis_gull[/eluser]
Solved it by creating a new function in MY_Upload file which will reformat the array so I later on can loop through it:

Code:
function split_files($input = 'userfile')
{
    $tmp = array();
        
        foreach($_FILES[$input] as $key => $data)
        {
            
            foreach($data as $i => $name)
            {
                $tmp[$i][$key] = $name;
            }
        }
        
    $_FILES = $tmp;
}


Messages In This Thread
upload library with dynamic $_FILES - by El Forum - 03-23-2010, 03:20 PM
upload library with dynamic $_FILES - by El Forum - 03-23-2010, 04:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB