package fileop import ( "crypto/md5" "encoding/hex" "strings" ) func GetHashFromPath(path string) string { hash := md5.Sum([]byte(path)) return hex.EncodeToString(hash[:]) } func IsMimeTypeSupported(mimetype string) bool { return strings.HasPrefix(mimetype, "video") && strings.HasPrefix(mimetype, "image") }