Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix return the fputobject response #1346

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

prakashsvmx
Copy link
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
10 checks passed
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