Compare commits

..

1 Commits

Author SHA1 Message Date
krau
cb6540c017 fix(minio): trim leading slash in JoinStoragePath method 2025-06-30 22:19:33 +08:00

View File

@@ -61,7 +61,7 @@ func (m *Minio) Name() string {
}
func (m *Minio) JoinStoragePath(p string) string {
return path.Join(m.config.BasePath, p)
return strings.TrimPrefix(path.Join(m.config.BasePath, p), "/")
}
func (m *Minio) Save(ctx context.Context, r io.Reader, storagePath string) error {