git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4040 a333f486-631f-4898-b8df-5754b55c2be0
@@ -287,7 +287,7 @@ class utils
$rInfo = @finfo_open(FILEINFO_MIME_TYPE); // return mime type ala mimetype extension
if ($rInfo !== false)
{
- $sType = @finfo_file($rInfo, $file);
+ $sType = @finfo_file($rInfo, $sTmpName);
if ( ($sType !== false)
&& is_string($sType)
&& (strlen($sType)>0))