idk
This commit is contained in:
@@ -36,9 +36,9 @@ func MinInit() {
|
||||
}
|
||||
}
|
||||
|
||||
func putFile(ctx context.Context, key string, reader io.Reader, size uint32, contentType string, meta map[string]string) error {
|
||||
func putFile(ctx context.Context, key string, reader io.Reader, size uint32, contentType string) error {
|
||||
dbConn.PutObject(ctx, globals.FileStorageBucketName, key, reader, int64(size), minio.PutObjectOptions{
|
||||
ContentType: contentType,
|
||||
UserMetadata: meta,
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
@@ -103,5 +103,8 @@ type WsAuthMessage struct {
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
type Metadata struct {
|
||||
type Media struct {
|
||||
Hash string
|
||||
Owner uint32
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user