Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object.put 指定 file 为路径时响应没有 url 吗 #1257

Open
shaunhurryup opened this issue Oct 7, 2023 · 0 comments
Open

Object.put 指定 file 为路径时响应没有 url 吗 #1257

shaunhurryup opened this issue Oct 7, 2023 · 0 comments

Comments

@shaunhurryup
Copy link

位置

const filepath = '/home/ossdemo/demo.txt';
store.put('ossdemo/demo.txt', filepath).then((result) => {
  console.log(result);
});

{
  name: 'ossdemo/demo.txt',
  res: {
    status: 200,
    headers: {
      date: 'Tue, 17 Feb 2015 13:28:17 GMT',
      'content-length': '0',
      connection: 'close',
      etag: '"BF7A03DA01440845BC5D487B369BC168"',
      server: 'AliyunOSS',
      'x-oss-request-id': '54E341F1707AA0275E829244'
    },
    size: 0,
    rt: 92
  }
}

其他 put 的响应最外层都是 name, url 和 res,只有当 file 指定为字符串路径时响应是不包括 url 的,想了解下这是为什么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant