src/Upyun/UpyunAdapter.php
public function writeStream($path, $resource, Config $config)
    {
        $status = $this->getUpyun()->writeFile($this->mergePath($path), $resource, true);
        fclose($resource);

        return $status;
    }
public function writeStream($path, $resource, Config $config)
    {
        $status = $this->getUpyun()->writeFile($this->mergePath($path), $resource, true);
        fclose($resource);

        return $status;
    }
写入文件流

@param string $path
@param resource $resource
@param array $config