This commit is contained in:
gitGnome
2026-04-14 15:58:10 +02:00
parent a020c13394
commit 39a28ee888
2 changed files with 7 additions and 4 deletions
+3 -3
View File
@@ -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{ dbConn.PutObject(ctx, globals.FileStorageBucketName, key, reader, int64(size), minio.PutObjectOptions{
ContentType: contentType, ContentType: contentType,
UserMetadata: meta,
}) })
} }
+4 -1
View File
@@ -103,5 +103,8 @@ type WsAuthMessage struct {
Error string `json:"error"` Error string `json:"error"`
} }
type Metadata struct { type Media struct {
Hash string
Owner uint32
CreatedAt time.Time
} }