MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / uploadContainerFile

Function uploadContainerFile

frontend/src/api/modules/container.ts:26–31  ·  view source on GitHub ↗
(params: FormData)

Source from the content-addressed store, hash-verified

24 return http.post<Array<Container.ContainerFileInfo>>(`/containers/files/search`, params, TimeoutEnum.T_40S);
25};
26export const uploadContainerFile = (params: FormData) => {
27 return http.upload(`/containers/files/upload`, params, {
28 headers: { 'Content-Type': 'multipart/form-data' },
29 timeout: TimeoutEnum.T_5M,
30 });
31};
32export const getContainerFileContent = (params: Container.ContainerFileReq) => {
33 return http.post<Container.ContainerFileContent>(`/containers/files/content`, params, TimeoutEnum.T_40S);
34};

Callers

nothing calls this directly

Calls 1

uploadMethod · 0.80

Tested by

no test coverage detected