2026-06-02 16:05:38 +08:00

16 lines
367 B
Go

package upload
type uploadPolicy struct {
allowedExtensions map[string]struct{}
kind string
requireImage bool
}
type uploadResult struct {
URL string `json:"url"`
ObjectKey string `json:"object_key"`
ContentType string `json:"content_type"`
SizeBytes int64 `json:"size_bytes"`
Filename string `json:"filename,omitempty"`
}