MCPcopy
hub / github.com/FlowiseAI/Flowise / createAttachment

Function createAttachment

packages/server/src/services/attachments/index.ts:7–16  ·  view source on GitHub ↗
(req: Request)

Source from the content-addressed store, hash-verified

5import { getErrorMessage } from '../../errors/utils'
6
7const createAttachment = async (req: Request) => {
8 try {
9 return await createFileAttachment(req)
10 } catch (error) {
11 throw new InternalFlowiseError(
12 StatusCodes.INTERNAL_SERVER_ERROR,
13 `Error: attachmentService.createAttachment - ${getErrorMessage(error)}`
14 )
15 }
16}
17
18export default {
19 createAttachment

Callers

nothing calls this directly

Calls 2

createFileAttachmentFunction · 0.90
getErrorMessageFunction · 0.90

Tested by

no test coverage detected