收藏
回答

小程序上传图片至阿里云OSS报错403?

======上传失败====== Error: 上传错误:{"statusCode":403,"data":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error>\n  <Code>AccessDenied</Code>\n  <Message>You have no right to access this object because of bucket acl.</Message>\n  <RequestId>6086128F7F8AAD3537DF014D</RequestId>\n  <HostId>love-miniapp.oss-cn-beijing.aliyuncs.com</HostId>\n</Error>\n","header":{"Server":"AliyunOSS","Date":"Mon, 26 Apr 2021 01:08:31 GMT","Content-Type":"application/xml","Content-Length":"278","Connection":"keep-alive","x-oss-request-id":"6086128F7F8AAD3537DF014D","x-oss-server-time":"56"},"cookies":[],"errMsg":"uploadFile:ok"}

回答关注问题邀请回答
收藏

3 个回答

  • @火麻
    @火麻
    06-23

    {"timestamp":"2024-06-23T16:10:52.406+08:00","status":403,"error":"Forbidden","message":"Forbidden","path":"/api/cmsApi/image/upload"}

    我也遇到这个问题了,自己的阿里云服务器,在uniapp 浏览器里一切正常,但是 微信开发者工具里就是不行, 有大佬能解释一下吗?

    06-23
    有用
    回复
  • yemin
    yemin
    2021-06-02

    我用cos的sdk一样的问题啊,这个问题怎么没人搭理啊

    2021-06-02
    有用
    回复
  • 小满
    小满
    2021-04-26

    小程序直传还是走了自家的后端服务

    2021-04-26
    有用
    回复
登录 后发表内容