Skip to content

Commit

Permalink
switch to FPutObject
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Tucker committed Mar 23, 2017
1 parent fba3b09 commit 9359620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3-uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func main() {
fmt.Printf("File size: %d\n", size)

// upload to s3
resp, err := minioClient.PutObject(bucketName, fileInfo.Name(), file, fileType)
resp, err := minioClient.FPutObject(bucketName, fileInfo.Name(), fullPath, fileType)
if err != nil {
fmt.Printf("Bad response: %s", err)
os.Exit(1)
Expand Down

0 comments on commit 9359620

Please sign in to comment.