Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/gotify/server
/ Open
Method
Open
router/router.go:255–261 ·
view source on GitHub ↗
(name string)
Source
from the content-addressed store, hash-verified
253
}
254
255
func
(fs *onlyImageFS) Open(name string) (http.File, error) {
256
ext := filepath.Ext(name)
257
if
!api.ValidApplicationImageExt(ext) {
258
return
nil, fmt.Errorf(
"invalid file"
)
259
}
260
return
fs.inner.Open(name)
261
}
Callers
7
loadPlugins
Method · 0.80
SetupSuite
Method · 0.80
TestWrapIncompatiblePlugins
Function · 0.80
New
Function · 0.80
BeforeTest
Method · 0.80
UploadApplicationImage
Method · 0.80
mustOpen
Function · 0.80
Calls
2
ValidApplicationImageExt
Function · 0.92
Errorf
Method · 0.80
Tested by
4
SetupSuite
Method · 0.64
TestWrapIncompatiblePlugins
Function · 0.64
BeforeTest
Method · 0.64
mustOpen
Function · 0.64