MCPcopy Index your code
hub / github.com/gotify/server / ValidApplicationImageExt

Function ValidApplicationImageExt

api/application.go:474–481  ·  view source on GitHub ↗
(ext string)

Source from the content-addressed store, hash-verified

472}
473
474func ValidApplicationImageExt(ext string) bool {
475 switch strings.ToLower(ext) {
476 case ".gif", ".png", ".jpg", ".jpeg":
477 return true
478 default:
479 return false
480 }
481}
482
483func handleApplicationError(ctx *gin.Context, err error) {
484 if errors.Is(err, gorm.ErrDuplicatedKey) {

Callers 2

OpenMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…