Skip to content

fix return the fputobject response#1346

Merged
prakashsvmx merged 1 commit intominio:masterfrom
prakashsvmx:ret-res-fput
Oct 16, 2024
Merged

fix return the fputobject response#1346
prakashsvmx merged 1 commit intominio:masterfrom
prakashsvmx:ret-res-fput

Conversation

@prakashsvmx
Copy link
Copy Markdown
Member

fix return the fputobject response

fixes #1345

Test script:

import * as Minio from 'minio'
import * as fs from 'fs'

const s3Client = new Minio.Client({
  endPoint: 'localhost',
  port: 22000,
  useSSL: false,
  accessKey: 'minio',
  secretKey: 'minio123',
  pathStyle: true,
})



const fputTest = async () => {
  const filePath = '/home/prakash/Downloads/test-all-file-types/Sizes/1GB.zip'
  const result = await s3Client.fPutObject('test-bucket', '1GB.zip', filePath)

  console.log(result)
}


fputTest()


// run it like: node examples/fput-object.mjs
{ etag: '9ee79882d70cbc56edf0a2281e4dbb49-16', versionId: null }

@prakashsvmx prakashsvmx merged commit b79bfd5 into minio:master Oct 16, 2024
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

Successfully merging this pull request may close these issues.

fPutObject() is no return value

2 participants