MCPcopy Index your code
hub / github.com/simstudioai/sim / createPublicFileContentSource

Function createPublicFileContentSource

apps/sim/hooks/use-file-content-source.tsx:78–83  ·  view source on GitHub ↗
(
  token: string,
  contentUrl: string
)

Source from the content-addressed store, hash-verified

76 * in its workspace.
77 */
78export function createPublicFileContentSource(
79 token: string,
80 contentUrl: string
81): FileContentSource {
82 return inlineImageSource(() => contentUrl, `/api/files/public/${token}/inline`)
83}
84
85/**
86 * Context default for components rendered outside a {@link FileContentSourceProvider}: serve URLs for

Callers 2

PublicFileViewFunction · 0.90
image.test.tsFile · 0.90

Calls 1

inlineImageSourceFunction · 0.85

Tested by

no test coverage detected