MCPcopy Create free account
hub / github.com/EsperoTech/yaade / uploadFile

Function uploadFile

client/src/api/index.tsx:242–246  ·  view source on GitHub ↗
(data: FormData)

Source from the content-addressed store, hash-verified

240const getFiles = (): Promise<Response> => fetch(BASE_PATH + 'api/files');
241
242const uploadFile = (data: FormData): Promise<Response> =>
243 fetch(BASE_PATH + 'api/files', {
244 method: 'POST',
245 body: data,
246 });
247
248const deleteFile = (id: number): Promise<Response> =>
249 fetch(BASE_PATH + `api/files/${id}`, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected