Seems it's Joomla!1.6. Corresponding code is
$meta_data = stream_get_meta_data($inputHandle);
foreach ($meta_data['wrapper_data'] as $wrapper_data)
{
/*line 60*/ if (substr($wrapper_data, 0, strlen("Content-Disposition")) == "Content-Disposition")
{
$contentfilename = explode ("\"", $wrapper_data);
$target = $contentfilename[1];
}
}
According to php documentation, $meta_data['wrapper_data'] contains "mixed" data, but it's usually array of strings. And seems in your case it's not true (as it's resource instead of string). I don't know how it's possible.
Does allow_url_fopen enabled in php.ini?