GithubHelp home page GithubHelp logo

Comments (4)

JoeByte avatar JoeByte commented on September 17, 2024

这个问题稍后会解决,谢谢反馈

from flysystem-aliyun-oss.

lepig avatar lepig commented on September 17, 2024

我也遇到这个问题了。配置isCName为true后,报错了。希望有时间能帮修复下,谢谢了。

from flysystem-aliyun-oss.

JoeByte avatar JoeByte commented on September 17, 2024
// 适合CDN与非CDN模式
$filesystem = new Filesystem(new OssAdapter([
    'accessId'     => '<access id>',
    'accessSecret' => '<access secret>',
    'bucket'       => '<bucket name>',
    'endpoint'     => 'oss-cn-hangzhou.aliyuncs.com', // 官方region
    'isCName'      => false,
]));

// 适合非CDN模式
$filesystem = new Filesystem(new OssAdapter([
    'accessId'     => '<access id>',
    'accessSecret' => '<access secret>',
    'bucket'       => '<bucket name>',
    'endpoint'     => 'img.xxtime.com',  // 自定义域名
    'isCName'      => true,
]));

这样用先

from flysystem-aliyun-oss.

ziyeziye avatar ziyeziye commented on September 17, 2024

修复了getUrl文件不存在报错的问题,和使用自定义域名(cdn)上传报错的问题:
https://github.com/ziyeziye/Aliyun-oss-storage

from flysystem-aliyun-oss.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.