public function findRealType()
    {
        $finfo = new \finfo();
        // Move file to the upload folder for checking
        $fileName = md5(microtime());
        $destination = $this->uploadDir;
        move_uploaded_file($this->tmpName, $destination.'/'.$fileName);
        $this->realType = $finfo->file($destination.'/'.$fileName, FILEINFO_MIME_TYPE);
        $this->tmpName = $destination.'/'.$fileName;


        return $this;
    }
public function findRealType()
    {
        $finfo = new \finfo();
        // Move file to the upload folder for checking
        $fileName = md5(microtime());
        $destination = $this->uploadDir;
        move_uploaded_file($this->tmpName, $destination.'/'.$fileName);
        $this->realType = $finfo->file($destination.'/'.$fileName, FILEINFO_MIME_TYPE);
        $this->tmpName = $destination.'/'.$fileName;


        return $this;
    }
public function findRealType ( ) { $ finfo = new \ finfo ( ) ; // Move file to the upload folder for checking $ fileName = md5 ( microtime ( ) ) ; $ destination = $ this -> uploadDir ; move_uploaded_file ( $ this -> tmpName , $ destination . '/' . $ fileName ) ; $ this -> realType = $ finfo -> file ( $ destination . '/' . $ fileName , FILEINFO_MIME_TYPE ) ; $ this -> tmpName = $ destination . '/' . $ fileName ; return $ this ; }
adds real file type

@return [type] [description]
adds real file type