public function updateStream($path, $resource, Config $config)
    {
        $size = Util::getStreamSize($resource);
        list($ret, $err) = Qiniu_RS_Rput($this->getClient(), $this->bucket, $path, $resource, $size, null);
        if ($err !== null) {
            return false;
        }
        return compact('size', 'path');
    }
public function updateStream($path, $resource, Config $config)
    {
        $size = Util::getStreamSize($resource);
        list($ret, $err) = Qiniu_RS_Rput($this->getClient(), $this->bucket, $path, $resource, $size, null);
        if ($err !== null) {
            return false;
        }
        return compact('size', 'path');
    }
public function updateStream ( $ path , $ resource , Config $ config ) { $ size = Util :: getStreamSize ( $ resource ) ; list ( $ ret , $ err ) = Qiniu_RS_Rput ( $ this -> getClient ( ) , $ this -> bucket , $ path , $ resource , $ size , null ) ; if ( $ err !== null ) { return false ; } return compact ( 'size' , 'path' ) ; }
Update a file using a stream

@param   string    $path
@param   resource  $resource
@param   mixed     $config   Config object or visibility setting
@return  array|bool
Update a file using a stream