MCPcopy
hub / github.com/pocketbase/pocketbase / OnFileDownloadRequest

Method OnFileDownloadRequest

core/app.go:1311–1311  ·  view source on GitHub ↗

--------------------------------------------------------------- File API event hooks --------------------------------------------------------------- OnFileDownloadRequest hook is triggered before each API File download request. Could be used to validate or modify the file response before returning

(tags ...string)

Source from the content-addressed store, hash-verified

1309 // Could be used to validate or modify the file response before
1310 // returning it to the client.
1311 OnFileDownloadRequest(tags ...string) *hook.TaggedHook[*FileDownloadRequestEvent]
1312
1313 // OnFileBeforeTokenRequest hook is triggered on each auth file token API request.
1314 //

Callers 3

TestFileDownloadFunction · 0.65
downloadMethod · 0.65
NewTestAppWithConfigFunction · 0.65

Calls

no outgoing calls

Tested by 1

TestFileDownloadFunction · 0.52