Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 212 Bytes

README-Get S3 File Body.md

File metadata and controls

11 lines (11 loc) · 212 Bytes

S3 getObject Body

async getObjectBody(filename: string){
  const params = {
    Buket: this.buket,
    key: filename
  }
  const data = await this.s3.getObject(params).promise()
  return data.Body
}