예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function updateStream($path, $resource, Config $config)
 {
     $location = $this->applyPathPrefix($path);
     $result = $this->client->uploadFromStream($location, $resource);
     unset($this->metaCache[$location]);
     return $this->normalizeObject($result, $location);
 }
예제 #2
0
 /**
  * Update a file using a stream
  *
  * @param   string    $path
  * @param   resource  $resource
  * @param   mixed     $config   Config object or visibility setting
  * @return  array     file metadata
  */
 public function updateStream($path, $resource, $config = null)
 {
     $location = $this->applyPathPrefix($path);
     $result = $this->client->uploadFromStream($location, $resource);
     return $this->normalizeObject($result, $path);
 }