Files
test_deploy/internal/constants/s3.go
Alex Shevchuk d84487d238 1
2025-08-18 17:12:04 +03:00

28 lines
522 B
Go

package constants
import "time"
const (
LogoLinkTTL = 55 * time.Minute
LogoMaxSize = 10 << 20 // 10 MB
BytesToDetectContentType = 512
ParseMultipartFormAllFile = 0
TempDirPermission = 0750
TempLogoFilePattern = "logo-*.tmp"
)
const (
DefaultFileTTL = 30 * 24 * time.Hour //30 days
)
var ValidImageTypes = map[string]bool{
"image/png": true,
"image/jpeg": true,
"image/jpg": true,
"image/webp": true,
}
const (
RefreshLogoCacheAsyncTimeout = 10 * time.Second
)