Hi,

I think something like this will help:

[PHP] function __construct($fi leArray, $postArray, $uploadDir)
{

/*
*Get the name of the file array
*/
if(count($fileA rray) == 1) //We are dealing with a single file
{
foreach($fileAr ray as $key => $val)
{
$arrayName = $key;
}
}

echo $fileArray[$arrayName]['name'];...