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
)
