idk
This commit is contained in:
@@ -2,6 +2,8 @@ package minio
|
||||
|
||||
import (
|
||||
"context"
|
||||
"go-socket/packages/globals"
|
||||
"io"
|
||||
|
||||
"github.com/minio/minio-go/v7"
|
||||
"github.com/minio/minio-go/v7/pkg/credentials"
|
||||
@@ -24,5 +26,13 @@ func MinInit() {
|
||||
}
|
||||
|
||||
if !exists {
|
||||
err = dbConn.MakeBucket(ctx, globals.FileStorageBucketName, minio.MakeBucketOptions{})
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func putFile(ctx context.Context, key string, reader io.Reader, size uint32, contentType string) error {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user