/** * {@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); }
/** * 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); }