public function updateFile(AbstractClassContent $file, $newfilename, $originalname = null, $src = null)
    {
        if (false === ($file instanceof Image)) {
            throw new \BackBee\ClassContent\Exception\ClassContentException('Invalid content type');
        }

        if (false === $newfilename = parent::updateFile($file, $newfilename, $originalname, $src)) {
            return false;
        }

        return $newfilename;
    }
public function updateFile(AbstractClassContent $file, $newfilename, $originalname = null, $src = null)
    {
        if (false === ($file instanceof Image)) {
            throw new \BackBee\ClassContent\Exception\ClassContentException('Invalid content type');
        }

        if (false === $newfilename = parent::updateFile($file, $newfilename, $originalname, $src)) {
            return false;
        }

        return $newfilename;
    }
public function updateFile ( AbstractClassContent $ file , $ newfilename , $ originalname = null , $ src = null ) { if ( false === ( $ file instanceof Image ) ) { throw new \ BackBee \ ClassContent \ Exception \ ClassContentException ( 'Invalid content type' ) ; } if ( false === $ newfilename = parent :: updateFile ( $ file , $ newfilename , $ originalname , $ src ) ) { return false ; } return $ newfilename ; }
Move an uploaded file to the temporary directory and update image content.

@param  \BackBee\ClassContent\AbstractClassContent            $file
@param  string                                                $newfilename
@param  string                                                $originalname
@param  string                                                $src

@return boolean|string
@throws \BackBee\ClassContent\Exception\ClassContentException Occures on invalid content type provided
Move an uploaded file to the temporary directory and update image content .