fix: keep ext name when file was missing mime type

This commit is contained in:
Acbox
2026-02-21 01:36:33 +08:00
parent 7b12fb0b0c
commit e2652d0884
6 changed files with 128 additions and 52 deletions
+6
View File
@@ -24,3 +24,9 @@ type Provider interface {
type ContainerFileOpener interface {
OpenContainerFile(botID, containerPath string) (io.ReadCloser, error)
}
// PrefixLister is an optional interface for providers that can list keys
// sharing a common prefix (e.g. directory listing on a filesystem backend).
type PrefixLister interface {
ListPrefix(ctx context.Context, prefix string) ([]string, error)
}