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

Function uploadChatFile

apps/sim/lib/uploads/contexts/chat/chat-file-manager.ts:87–95  ·  view source on GitHub ↗

* Upload a single chat file to temporary execution storage * * This is a convenience function for uploading individual files. * For batch uploads, use processChatFiles() for better performance. * * @param file Chat file to upload * @param executionContext Execution context for temporary storag

(
  file: ChatFile,
  executionContext: ChatExecutionContext,
  requestId: string,
  userId?: string
)

Source from the content-addressed store, hash-verified

85 * @returns UserFile object with upload result
86 */
87async function uploadChatFile(
88 file: ChatFile,
89 executionContext: ChatExecutionContext,
90 requestId: string,
91 userId?: string
92): Promise<UserFile> {
93 const [userFile] = await processChatFiles([file], executionContext, requestId, userId)
94 return userFile
95}

Callers

nothing calls this directly

Calls 1

processChatFilesFunction · 0.85

Tested by

no test coverage detected