Skip to content

Commit

Permalink
fix return the fputobject response (#1346)
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashsvmx authored Oct 16, 2024
1 parent 66dab2c commit b79bfd5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ The complete API Reference is available here:

#### File Object Operations

- [fput-object.js](https://github.com/minio/minio-js/blob/master/examples/fput-object.js)
- [fput-object.mjs](https://github.com/minio/minio-js/blob/master/examples/fput-object.js)
- [fget-object.mjs](https://github.com/minio/minio-js/blob/master/examples/fget-object.mjs)

#### Object Operations
Expand Down
2 changes: 1 addition & 1 deletion README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ mc ls play/europetrip/
* [list-incomplete-uploads.js](https://github.com/minio/minio-js/blob/master/examples/list-incomplete-uploads.js)

#### 完整示例 : 操作文件对象
* [fput-object.js](https://github.com/minio/minio-js/blob/master/examples/fput-object.js)
* [fput-object.mjs](https://github.com/minio/minio-js/blob/master/examples/fput-object.js)
* [fget-object.mjs](https://github.com/minio/minio-js/blob/master/examples/fget-object.mjs)

#### 完整示例 : 操作对象
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/internal/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ export class TypedClient {
// Inserts correct `content-type` attribute based on metaData and filePath
metaData = insertContentType(metaData, filePath)
const stat = await fsp.lstat(filePath)
await this.putObject(bucketName, objectName, fs.createReadStream(filePath), stat.size, metaData)
return await this.putObject(bucketName, objectName, fs.createReadStream(filePath), stat.size, metaData)
}

/**
Expand Down

0 comments on commit b79bfd5

Please sign in to comment.