MCPcopy Create free account
hub / github.com/ResearAI/DeepScientist / uploadCliFile

Function uploadCliFile

src/ui/src/lib/api/cli.ts:121–128  ·  view source on GitHub ↗
(projectId: string, serverId: string, file: File, path: string)

Source from the content-addressed store, hash-verified

119}
120
121export async function uploadCliFile(projectId: string, serverId: string, file: File, path: string) {
122 const formData = new FormData()
123 formData.append('file', file)
124 const response = await apiClient.post(`/api/v1/projects/${projectId}/cli/servers/${serverId}/upload`, formData, {
125 params: { path },
126 })
127 return response.data as { success: boolean }
128}
129
130export async function downloadCliFile(projectId: string, serverId: string, path: string) {
131 const response = await apiClient.get(`/api/v1/projects/${projectId}/cli/servers/${serverId}/download`, {

Callers 3

BatchOperationsDialogFunction · 0.90
useFileBrowserFunction · 0.90

Calls 2

appendMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected