Coder Social home page Coder Social logo

Comments (5)

carsonxu avatar carsonxu commented on July 3, 2024

你是希望返回的 Object 都带有完整的 url?

from cos-nodejs-sdk-v5.

ypli0629 avatar ypli0629 commented on July 3, 2024

@carsonxu 不是,只需要一个字段把图片的前缀带上就好了

from cos-nodejs-sdk-v5.

ypli0629 avatar ypli0629 commented on July 3, 2024

现在返回的结果

{ Name: 'baoma-1257103690',
  Prefix: '',
  Marker: '',
  MaxKeys: '1000',
  IsTruncated: 'false',
  Contents:
   [ { Key: 'aodi-9',
       LastModified: '2018-07-23T13:35:57.000Z',
       ETag: '"c3a62962b0df193f1886de324efd5668-1"',
       Size: '673484',
       Owner: [Object],
       StorageClass: 'STANDARD' } ],
  CommonPrefixes: [],
  statusCode: 200,
  headers:
   { 'content-type': 'application/xml',
     'content-length': '502',
     connection: 'close',
     date: 'Mon, 23 Jul 2018 16:33:19 GMT',
     server: 'tencent-cos',
     'x-cos-request-id': 'NWI1NjAzNGZfY2IwZTc3NjRfYWRmN183YWQ3OTg=' } }

from cos-nodejs-sdk-v5.

ypli0629 avatar ypli0629 commented on July 3, 2024

根据这些信息,我没办法拼接出完整的图片url

from cos-nodejs-sdk-v5.

carsonxu avatar carsonxu commented on July 3, 2024

加上你传的参数里 Bucket 和 Region,就可以拼接完整 Url,这个不一定要在返回值里体现 Url

from cos-nodejs-sdk-v5.

Related Issues (20)

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.