Skip to content

Commit b79bfd5

Browse files
authored
fix return the fputobject response (#1346)
1 parent 66dab2c commit b79bfd5

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ The complete API Reference is available here:
219219

220220
#### File Object Operations
221221

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

225225
#### Object Operations

README_zh_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ mc ls play/europetrip/
160160
* [list-incomplete-uploads.js](https://github.com/minio/minio-js/blob/master/examples/list-incomplete-uploads.js)
161161

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

166166
#### 完整示例 : 操作对象
File renamed without changes.

src/internal/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ export class TypedClient {
15791579
// Inserts correct `content-type` attribute based on metaData and filePath
15801580
metaData = insertContentType(metaData, filePath)
15811581
const stat = await fsp.lstat(filePath)
1582-
await this.putObject(bucketName, objectName, fs.createReadStream(filePath), stat.size, metaData)
1582+
return await this.putObject(bucketName, objectName, fs.createReadStream(filePath), stat.size, metaData)
15831583
}
15841584

15851585
/**

0 commit comments

Comments
 (0)