收藏
回答

cannot upload file to the Cloud Base?

We are using TCB (云开发) on our Mini Program. Our architecture requires make an external HTTP request and upload file to the TCB storage. I've been following official doc(https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-http-api/storage/uploadFile.html), however getting 405 Method Not Allowed error after receiving upload URL. Can you help me to solve it?

Always get an error:

<?xml version='1.0' encoding='utf-8' ?>

<Error>

<Code>MethodNotAllowed</Code>

<Message>The specified method is not allowed against this resource.</Message>

<Resource>cos.ap-shanghai.myqcloud.com/7472-travl4good-test-ps8fl-1302595888/file.txt</Resource>

<RequestId>NWY2OTE4OWJfNmMxZTFkMDlfNjA1Y185MzJjNzk=</RequestId>

<TraceId>OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OWE4OGMxZjNjY2JiNTBmMTVmMWY1MzAzYzkyZGQ2ZWM4OWM4Y2M5MzI5ZmUzN2FjZDk1OTRjYWI5Yjg5OTJlZDA=</TraceId>

</Error>


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

1 个回答

  • 云开发技术运营专员-Zira
    云开发技术运营专员-Zira
    09-22

    If you have the correct permissions, but you're not using an identity that belongs to the bucket owner's account, COS returns MethodNotAllowed.

    09-22
    有用
    回复 1
    • Vitale
      Vitale
      发表于移动端
      09-22
      Do you have any suggestions how I can solve it?
      09-22
      回复
登录 后发表内容
问题标签